]> git.mdlowis.com Git - proto/labwc.git/log
proto/labwc.git
4 years agokeyboard: Fix handled check
Joshua Ashton [Mon, 1 Nov 2021 21:59:07 +0000 (21:59 +0000)]
keyboard: Fix handled check

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agowlroots.wrap: set url to https://gitlab.freedesktop.org/wlroots/wlroots
Johan Malm [Mon, 1 Nov 2021 22:07:18 +0000 (22:07 +0000)]
wlroots.wrap: set url to https://gitlab.freedesktop.org/wlroots/wlroots

4 years agooutput: update layer surfaces on output geometry changes
ARDiDo [Sat, 30 Oct 2021 14:20:06 +0000 (10:20 -0400)]
output: update layer surfaces on output geometry changes

4 years agoresistance: don't use gap value
ARDiDo [Tue, 26 Oct 2021 19:15:52 +0000 (15:15 -0400)]
resistance: don't use gap value

4 years agoresistance: update documentation + default strength value
ARDiDo [Mon, 25 Oct 2021 21:04:22 +0000 (17:04 -0400)]
resistance: update documentation + default strength value

4 years agoresistance: remove bool, add resistance.h + license
ARDiDo [Mon, 25 Oct 2021 01:31:05 +0000 (21:31 -0400)]
resistance: remove bool, add resistance.h + license

4 years agoresistance: improve readability
ARDiDo [Mon, 25 Oct 2021 01:14:05 +0000 (21:14 -0400)]
resistance: improve readability

4 years agoresistance: fix meson.build
ARDiDo [Sun, 24 Oct 2021 16:17:57 +0000 (12:17 -0400)]
resistance: fix meson.build

4 years agoresistance: move strength.c to resistance.c
ARDiDo [Sun, 24 Oct 2021 16:13:20 +0000 (12:13 -0400)]
resistance: move strength.c to resistance.c

4 years agoresistance: move to <resistance> node
ARDiDo [Sun, 24 Oct 2021 16:08:30 +0000 (12:08 -0400)]
resistance: move to <resistance> node

4 years agoresize resistance support
ARDiDo [Sun, 24 Oct 2021 02:48:04 +0000 (22:48 -0400)]
resize resistance support

4 years agoImprove expandibility
ARDiDo [Sun, 24 Oct 2021 02:31:39 +0000 (22:31 -0400)]
Improve expandibility

4 years agoPartial screen_edge_strength
ARDiDo [Sat, 23 Oct 2021 15:25:37 +0000 (11:25 -0400)]
Partial screen_edge_strength

4 years agoUpdate NEWS.md
Johan Malm [Fri, 22 Oct 2021 19:27:16 +0000 (20:27 +0100)]
Update NEWS.md

4 years agoREADME.md: add a video showing SnapToEdge
Johan Malm [Fri, 22 Oct 2021 19:25:33 +0000 (20:25 +0100)]
README.md: add a video showing SnapToEdge

Posted by @Joshua-Ashton in pull-request

4 years agoconfig: add some comments in "struct rcxml"
Johan Malm [Fri, 22 Oct 2021 19:24:39 +0000 (20:24 +0100)]
config: add some comments in "struct rcxml"

4 years agoconfig: add <core><adaptiveSync>
Johan Malm [Fri, 22 Oct 2021 19:23:09 +0000 (20:23 +0100)]
config: add <core><adaptiveSync>

4 years agoconfig: make capitalization consistent in rc.xml
Johan Malm [Thu, 21 Oct 2021 19:40:14 +0000 (20:40 +0100)]
config: make capitalization consistent in rc.xml

4 years agorc.xml.all: add keyboard repeatRate and repeatDelay
Johan Malm [Thu, 21 Oct 2021 19:38:52 +0000 (20:38 +0100)]
rc.xml.all: add keyboard repeatRate and repeatDelay

4 years agocursor: do not crash on layer popup/subsurfaces
Johan Malm [Thu, 21 Oct 2021 19:37:30 +0000 (20:37 +0100)]
cursor: do not crash on layer popup/subsurfaces

4 years agokeybind: Fix shift modifiers
Joshua Ashton [Thu, 21 Oct 2021 17:09:53 +0000 (17:09 +0000)]
keybind: Fix shift modifiers

Need to lower the syms for these to match!

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agolayers: support popups
Johan Malm [Wed, 20 Oct 2021 21:32:46 +0000 (22:32 +0100)]
layers: support popups

4 years agodesktop: use correct coordinates layer_surface_at()
Johan Malm [Wed, 20 Oct 2021 19:57:12 +0000 (20:57 +0100)]
desktop: use correct coordinates layer_surface_at()

Use output coordinates rather than layout coordinates in order to
correctly handle pointer button event on multi-output setup.

4 years agoxwayland: clear wlr_xwayland_surface in handle_destroy
Johan Malm [Wed, 20 Oct 2021 19:34:47 +0000 (20:34 +0100)]
xwayland: clear wlr_xwayland_surface in handle_destroy

Avoids wlr_xwayland_surface becoming a dangling pointer if a view is not
destroyed immediately.

See swaywm/sway@215787e8

4 years agodocs/autostart: add kanshi, waybar and mako as examples
Johan Malm [Wed, 20 Oct 2021 18:54:39 +0000 (19:54 +0100)]
docs/autostart: add kanshi, waybar and mako as examples

4 years agolabwc-theme(5): add missing theme options
Johan Malm [Wed, 20 Oct 2021 18:53:05 +0000 (19:53 +0100)]
labwc-theme(5): add missing theme options

4 years agodocs/themerc: add missing theme options
Johan Malm [Wed, 20 Oct 2021 18:52:17 +0000 (19:52 +0100)]
docs/themerc: add missing theme options

4 years agoserver: Expose viewporter
Joshua Ashton [Wed, 20 Oct 2021 16:27:14 +0000 (16:27 +0000)]
server: Expose viewporter

Needed for some games to fake modesets.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agooutput: Implement src box for viewporter
Joshua Ashton [Wed, 20 Oct 2021 16:27:06 +0000 (16:27 +0000)]
output: Implement src box for viewporter

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoxwayland: Implement set_decorations
Joshua Ashton [Wed, 20 Oct 2021 16:06:32 +0000 (16:06 +0000)]
xwayland: Implement set_decorations

Fixes games going between borderless and normal windowed modes.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoxdg-deco: Respect decoration requests properly
Joshua Ashton [Wed, 20 Oct 2021 16:03:27 +0000 (16:03 +0000)]
xdg-deco: Respect decoration requests properly

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoxdg: Set view in user data
Joshua Ashton [Wed, 20 Oct 2021 16:02:45 +0000 (16:02 +0000)]
xdg: Set view in user data

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoxwayland: Set view in surface data
Joshua Ashton [Wed, 20 Oct 2021 16:02:39 +0000 (16:02 +0000)]
xwayland: Set view in surface data

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agouse closest wlr_output
ARDiDo [Tue, 19 Oct 2021 22:15:56 +0000 (18:15 -0400)]
use closest wlr_output

4 years agoclean up view_available_wlr_output
ARDiDo [Tue, 19 Oct 2021 00:55:01 +0000 (20:55 -0400)]
clean up view_available_wlr_output

4 years agoimprove view_output
ARDiDo [Mon, 18 Oct 2021 23:59:11 +0000 (19:59 -0400)]
improve view_output

4 years agorc.xml.all: re-format and improve comments
Johan Malm [Tue, 19 Oct 2021 20:52:26 +0000 (21:52 +0100)]
rc.xml.all: re-format and improve comments

4 years agorc.xml.all: change default <core><gap> from 10 to 0
Johan Malm [Tue, 19 Oct 2021 20:51:28 +0000 (21:51 +0100)]
rc.xml.all: change default <core><gap> from 10 to 0

4 years agorc.xml.all: add <libinput>
Johan Malm [Tue, 19 Oct 2021 20:48:49 +0000 (21:48 +0100)]
rc.xml.all: add <libinput>

4 years agolabwc-config(5): minor language tweaks
Johan Malm [Tue, 19 Oct 2021 20:47:47 +0000 (21:47 +0100)]
labwc-config(5): minor language tweaks

4 years agoconfig: change libinput variables to camelCase
Johan Malm [Tue, 19 Oct 2021 20:44:44 +0000 (21:44 +0100)]
config: change libinput variables to camelCase

This is more consistent with other rc.xml variables.

strcasecmp() is used in src/config/rc.xml, so there are not backward
compatibility issues.

4 years agolabwc-config(5): add binds for Audio and MonBrightness keys
Johan Malm [Tue, 19 Oct 2021 20:39:26 +0000 (21:39 +0100)]
labwc-config(5): add binds for Audio and MonBrightness keys

4 years agoview: fix build warning
Johan Malm [Mon, 18 Oct 2021 19:06:47 +0000 (20:06 +0100)]
view: fix build warning

4 years agoview: add view_get_string_prop()
Johan Malm [Mon, 18 Oct 2021 19:01:10 +0000 (20:01 +0100)]
view: add view_get_string_prop()

4 years agolabwc-actions(5): add SnapToEdge "center" argument
Johan Malm [Mon, 18 Oct 2021 18:47:32 +0000 (19:47 +0100)]
labwc-actions(5): add SnapToEdge "center" argument

4 years agoforeign: remove unnecessary view_update_title()
Johan Malm [Mon, 18 Oct 2021 18:40:04 +0000 (19:40 +0100)]
foreign: remove unnecessary view_update_title()

View update title is called from view_impl_map() which is enough

4 years agoview: check view->impl functions exist before using
Johan Malm [Mon, 18 Oct 2021 18:35:41 +0000 (19:35 +0100)]
view: check view->impl functions exist before using

Avoids segfault when using disappearing notification in Thunderbird

4 years agoaction: Implement shift to go backwards in OSD
Joshua Ashton [Sun, 17 Oct 2021 22:53:43 +0000 (22:53 +0000)]
action: Implement shift to go backwards in OSD

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoconfig: Fix RaiseOnFocus always setting FollowMouse
Joshua Ashton [Mon, 18 Oct 2021 00:24:59 +0000 (00:24 +0000)]
config: Fix RaiseOnFocus always setting FollowMouse

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoview: Add 'center' option to SnapToEdge
Joshua Ashton [Sun, 17 Oct 2021 22:09:34 +0000 (22:09 +0000)]
view: Add 'center' option to SnapToEdge

Similar to fullscreen, but not a separate state, and with gaps.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agocursor: Don't trigger cursor modifiers if we have a constraint
Joshua Ashton [Sun, 17 Oct 2021 22:03:11 +0000 (22:03 +0000)]
cursor: Don't trigger cursor modifiers if we have a constraint

We are probably playing a game and we don't want to be resizing the window when trying to duck/jump whatever.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agocursor: Fix modifier button check
Joshua Ashton [Sun, 17 Oct 2021 22:00:54 +0000 (22:00 +0000)]
cursor: Fix modifier button check

Previously any modifier would trigger this due to &ing the wrong value.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agocursor: Handle absolute motion for relative_pointer
Joshua Ashton [Sun, 17 Oct 2021 21:57:10 +0000 (21:57 +0000)]
cursor: Handle absolute motion for relative_pointer

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoadd pointer constraints
ARDiDo [Sun, 17 Oct 2021 20:54:35 +0000 (16:54 -0400)]
add pointer constraints

4 years agoview: set inter-view gap correctly in SnapToEdge
Johan Malm [Sun, 17 Oct 2021 21:23:00 +0000 (22:23 +0100)]
view: set inter-view gap correctly in SnapToEdge

When arranging views side-by-side or above-below using SnapToEdge, the gap
between views should be rc.gap rather than 2x rc.gap

4 years agoREADME: add link to yambar
Johan Malm [Sun, 17 Oct 2021 20:36:32 +0000 (21:36 +0100)]
README: add link to yambar

Both labwc and yambar were patched today to better handle
foreign-toplevel protocol and now work well together.

4 years agoREADME: add super+arrow keybinds
Johan Malm [Sun, 17 Oct 2021 20:36:06 +0000 (21:36 +0100)]
README: add super+arrow keybinds

4 years agorc.xml.all: add super+arrow keybinds
Johan Malm [Sun, 17 Oct 2021 20:31:44 +0000 (21:31 +0100)]
rc.xml.all: add super+arrow keybinds

4 years agoconfig: use super+arrow for SnapToEdge by default
Johan Malm [Sun, 17 Oct 2021 20:30:48 +0000 (21:30 +0100)]
config: use super+arrow for SnapToEdge by default

4 years agolabwc-actions(5): add SnapToEdge
Johan Malm [Sun, 17 Oct 2021 20:27:25 +0000 (21:27 +0100)]
labwc-actions(5): add SnapToEdge

4 years agobuild: replace deprecated get_pkgconfig_variable()
Johan Malm [Sun, 17 Oct 2021 20:05:57 +0000 (21:05 +0100)]
build: replace deprecated get_pkgconfig_variable()

Use get_variable(pkgconfig: ...) instead of get_pkgconfig_variable(...)

4 years agolabwc-theme(5): add window.label.text.justify
Johan Malm [Sun, 17 Oct 2021 19:52:29 +0000 (20:52 +0100)]
labwc-theme(5): add window.label.text.justify

In support of labwc@8b8e37c2

4 years agotheme: Implement window.label.text.justify
Joshua Ashton [Sun, 17 Oct 2021 19:12:06 +0000 (19:12 +0000)]
theme: Implement window.label.text.justify

Crosses off 6.12.1

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoxdg: Respect min/max size in configure
Joshua Ashton [Sun, 17 Oct 2021 18:37:55 +0000 (18:37 +0000)]
xdg: Respect min/max size in configure

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoxwayland: Handle min width/height in configure
Joshua Ashton [Sun, 17 Oct 2021 18:34:49 +0000 (18:34 +0000)]
xwayland: Handle min width/height in configure

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agocursor: Handle min size better
Joshua Ashton [Sun, 17 Oct 2021 18:32:27 +0000 (18:32 +0000)]
cursor: Handle min size better

Less janky than just returning if one extent reaches max, and also uses the new min_size function for xwayland hint support.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoinclude: Add min/max helpers
Joshua Ashton [Sun, 17 Oct 2021 18:37:25 +0000 (18:37 +0000)]
include: Add min/max helpers

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoview: Add view_min_size helper function
Joshua Ashton [Sun, 17 Oct 2021 18:31:53 +0000 (18:31 +0000)]
view: Add view_min_size helper function

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoxwayland: Implement resize event
Joshua Ashton [Sun, 17 Oct 2021 17:12:51 +0000 (17:12 +0000)]
xwayland: Implement resize event

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoxwayland: Implement move event
Joshua Ashton [Sun, 17 Oct 2021 17:11:41 +0000 (17:11 +0000)]
xwayland: Implement move event

Closes: #81
Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoxwayland: Only perform top-left boundary check when using ssd
Joshua Ashton [Sun, 17 Oct 2021 01:39:19 +0000 (01:39 +0000)]
xwayland: Only perform top-left boundary check when using ssd

We don't have decorations so we shouldn't account for them.

Closes: #53
Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoaction: Fix crash in move to edge
Joshua Ashton [Sun, 17 Oct 2021 01:14:01 +0000 (01:14 +0000)]
action: Fix crash in move to edge

Fixes a crash in move to edge ( #77 ) when the centre of the window is out of any display regions.

Doesn't fix the expected behaviour that it would work, but much better than the whole compositor dying.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoaction: Add 'SnapToEdge'
Joshua Ashton [Sun, 17 Oct 2021 00:44:24 +0000 (00:44 +0000)]
action: Add 'SnapToEdge'

Implements snap-style edge snapping that works between multiple monitors.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agotheme: fix parsing inactive label colors
Joshie [Sat, 16 Oct 2021 23:17:46 +0000 (23:17 +0000)]
theme: fix parsing inactive label colors

There was a typo here which meant these never got parsed and always appeared as black.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
4 years agoxdg/wayland-shell: handle set_app_id and set_class events
Johan Malm [Sat, 16 Oct 2021 20:50:56 +0000 (21:50 +0100)]
xdg/wayland-shell: handle set_app_id and set_class events

4 years agoview: call wlr_foreign_toplevel_handle_v1_set_app_id() on map
Johan Malm [Sat, 16 Oct 2021 20:26:57 +0000 (21:26 +0100)]
view: call wlr_foreign_toplevel_handle_v1_set_app_id() on map

Fix issue #74

Add view-impl.c with view_impl_map() containing common code for xdg-shell
and xwayland-shell.

4 years agodesktop: remove deprecated functions
Johan Malm [Sat, 16 Oct 2021 18:53:00 +0000 (19:53 +0100)]
desktop: remove deprecated functions

- set_activated()
- desktop_set_focus_view_only()

4 years agodesktop: simplify interface for view raise/focus
Johan Malm [Sat, 16 Oct 2021 18:44:54 +0000 (19:44 +0100)]
desktop: simplify interface for view raise/focus

Split desktop_focus_view() into the following two functions:
  - desktop_focus_and_activate_view()
  - desktop_raise_view()

Always call view_set_activated() rather than using the private
set_activated(). This keeps the code cleaner and ensures
wlr_foreign_toplevel_handle_v1_set_activated() is called.

4 years agoview: add view_set_activated()
Johan Malm [Sat, 16 Oct 2021 18:24:26 +0000 (19:24 +0100)]
view: add view_set_activated()

Call wlr_foreign_toplevel_handle_v1_set_activated() from it in support of
issue #73

4 years agotheme: inherit osd colors if not set
Johan Malm [Fri, 15 Oct 2021 20:44:27 +0000 (21:44 +0100)]
theme: inherit osd colors if not set

4 years agotheme: add window_(in)active_label_text_color
Johan Malm [Fri, 15 Oct 2021 20:35:41 +0000 (21:35 +0100)]
theme: add window_(in)active_label_text_color

Support both active and inactive colors for titlebar text

4 years agoFix coding style, mostly whitespace
Johan Malm [Fri, 15 Oct 2021 19:52:36 +0000 (20:52 +0100)]
Fix coding style, mostly whitespace

4 years agoconfig: survive parsing error
Johan Malm [Fri, 15 Oct 2021 19:33:55 +0000 (20:33 +0100)]
config: survive parsing error

It is no good crashing on an rc.xml syntax error, particularly on a
SIGHUP when the user could have applications open.

4 years agolayer-shell: fix commit handler (issue #71)
Johan Malm [Fri, 15 Oct 2021 18:14:07 +0000 (19:14 +0100)]
layer-shell: fix commit handler (issue #71)

On commit, do not arrange layers unless the layer shell-specific state
changed or the layer was (un)mapped.

Chase swaywm/sway@5fd5d643 and swaywm/wlroots@754f40f9

4 years agoFix build errors
ARDiDo [Fri, 15 Oct 2021 16:27:52 +0000 (12:27 -0400)]
Fix build errors

4 years agoUpdate labwc-config(5)
ARDiDo [Fri, 15 Oct 2021 16:14:07 +0000 (12:14 -0400)]
Update labwc-config(5)

4 years agoComplete libinput configuration
ARDiDo [Fri, 15 Oct 2021 14:26:00 +0000 (10:26 -0400)]
Complete libinput configuration

4 years agoconfig: support audio and monitor keys by default
Johan Malm [Thu, 14 Oct 2021 18:37:57 +0000 (19:37 +0100)]
config: support audio and monitor keys by default

Add default keybinds:

    XF86_AudioLowerVolume - amixer sset Master 5%-
    XF86_AudioRaiseVolume - amixer sset Master 5%+
    XF86_AudioMute - amixer sset Master toggle
    XF86_MonBrightnessUp - brightnessctl set +10%
    XF86_MonBrightnessDown - brightnessctl set 10%-

4 years agoUpdate NEWS.md
Johan Malm [Wed, 13 Oct 2021 20:36:26 +0000 (21:36 +0100)]
Update NEWS.md

4 years agobuf.h: update documentation
Johan Malm [Wed, 13 Oct 2021 20:30:44 +0000 (21:30 +0100)]
buf.h: update documentation

4 years agotheme: add osd colors
Johan Malm [Wed, 13 Oct 2021 20:29:32 +0000 (21:29 +0100)]
theme: add osd colors

4 years agobuf.c: handle variables with curly braces
Johan Malm [Mon, 11 Oct 2021 21:31:38 +0000 (22:31 +0100)]
buf.c: handle variables with curly braces

In buf_expand_shell_variables(), corrently resolve ${foo}
rather than just $foo

4 years agobuf.c: correctly handle unset environment variables
Johan Malm [Mon, 11 Oct 2021 21:28:06 +0000 (22:28 +0100)]
buf.c: correctly handle unset environment variables

4 years agosession: resolve variables in environment file
Johan Malm [Mon, 11 Oct 2021 21:15:44 +0000 (22:15 +0100)]
session: resolve variables in environment file

When parsing <key>=<value> pairs to set enrivonment variables,
resolve variables in <value>.

For example, resolve $bar in

    foo=$bar

Fix issue #70

4 years agoReconfigure inputs
ARDiDo [Sun, 10 Oct 2021 16:03:18 +0000 (12:03 -0400)]
Reconfigure inputs

4 years agokeyboard repeat configuration
ARDiDo [Sat, 9 Oct 2021 19:16:02 +0000 (15:16 -0400)]
keyboard repeat configuration

4 years agopartial libinput configuration
ARDiDo [Sat, 9 Oct 2021 13:10:26 +0000 (09:10 -0400)]
partial libinput configuration

4 years agoMerge branch 'master' of https://github.com/johanmalm/labwc
Johan Malm [Mon, 4 Oct 2021 05:24:34 +0000 (06:24 +0100)]
Merge branch 'master' of https://github.com/johanmalm/labwc

4 years agofix build errors
ARDiDo [Sun, 3 Oct 2021 20:19:42 +0000 (16:19 -0400)]
fix build errors

4 years agodrag across monitor
ARDiDo [Sun, 3 Oct 2021 18:21:32 +0000 (14:21 -0400)]
drag across monitor