Commit graph

651 commits

Author SHA1 Message Date
Johan Malm
a542f0e93b docs/themerc: add missing theme options 2021-10-20 19:52:17 +01:00
Joshua Ashton
8048f5f497 server: Expose viewporter
Needed for some games to fake modesets.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:22 +01:00
Joshua Ashton
35e9d8cb35 output: Implement src box for viewporter
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:22 +01:00
Joshua Ashton
0a7f1b51f7 xwayland: Implement set_decorations
Fixes games going between borderless and normal windowed modes.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:02 +01:00
Joshua Ashton
89f09567f5 xdg-deco: Respect decoration requests properly
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:02 +01:00
Joshua Ashton
60547cffe6 xdg: Set view in user data
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:02 +01:00
Joshua Ashton
a29ffebc40 xwayland: Set view in surface data
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:02 +01:00
ARDiDo
fffa912fd6 use closest wlr_output 2021-10-20 06:51:30 +01:00
ARDiDo
380b8b295a clean up view_available_wlr_output 2021-10-20 06:51:30 +01:00
ARDiDo
08286a607f improve view_output 2021-10-20 06:51:30 +01:00
Johan Malm
57d0283d61 rc.xml.all: re-format and improve comments 2021-10-19 21:52:26 +01:00
Johan Malm
1b89a468c7 rc.xml.all: change default <core><gap> from 10 to 0 2021-10-19 21:51:28 +01:00
Johan Malm
960f8ebe11 rc.xml.all: add <libinput> 2021-10-19 21:48:49 +01:00
Johan Malm
ecc28d5e10 labwc-config(5): minor language tweaks 2021-10-19 21:47:47 +01:00
Johan Malm
7398966661 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.
2021-10-19 21:44:44 +01:00
Johan Malm
5f14ab751f labwc-config(5): add binds for Audio and MonBrightness keys 2021-10-19 21:39:26 +01:00
Johan Malm
e7da5f21e9 view: fix build warning 2021-10-18 20:06:47 +01:00
Johan Malm
806fdb08bd view: add view_get_string_prop() 2021-10-18 20:01:10 +01:00
Johan Malm
40bd8f56d4 labwc-actions(5): add SnapToEdge "center" argument 2021-10-18 19:47:32 +01:00
Johan Malm
cf1bd67ec1 foreign: remove unnecessary view_update_title()
View update title is called from view_impl_map() which is enough
2021-10-18 19:40:04 +01:00
Johan Malm
40da2f34a5 view: check view->impl functions exist before using
Avoids segfault when using disappearing notification in Thunderbird
2021-10-18 19:35:41 +01:00
Joshua Ashton
846ccb9eb9 action: Implement shift to go backwards in OSD
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-18 17:28:34 +01:00
Joshua Ashton
d8a499deaa config: Fix RaiseOnFocus always setting FollowMouse
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-18 17:25:08 +01:00
Joshua Ashton
22d10497ca 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>
2021-10-17 23:24:36 +01:00
Joshua Ashton
95f583ba6b 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>
2021-10-17 23:23:39 +01:00
Joshua Ashton
398cad692d 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>
2021-10-17 23:23:39 +01:00
Joshua Ashton
7e4e579c37 cursor: Handle absolute motion for relative_pointer
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 23:21:27 +01:00
ARDiDo
f5072151a9 add pointer constraints 2021-10-17 22:32:25 +01:00
Johan Malm
bd1e6f3728 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
2021-10-17 22:23:00 +01:00
Johan Malm
455a1c4d2c README: add link to yambar
Both labwc and yambar were patched today to better handle
foreign-toplevel protocol and now work well together.
2021-10-17 21:36:32 +01:00
Johan Malm
5eaa663dfd README: add super+arrow keybinds 2021-10-17 21:36:06 +01:00
Johan Malm
824db7e902 rc.xml.all: add super+arrow keybinds 2021-10-17 21:31:44 +01:00
Johan Malm
526fb1668c config: use super+arrow for SnapToEdge by default 2021-10-17 21:30:48 +01:00
Johan Malm
98b682379f labwc-actions(5): add SnapToEdge 2021-10-17 21:27:25 +01:00
Johan Malm
7c829584f5 build: replace deprecated get_pkgconfig_variable()
Use get_variable(pkgconfig: ...) instead of get_pkgconfig_variable(...)
2021-10-17 21:05:57 +01:00
Johan Malm
d620a95281 labwc-theme(5): add window.label.text.justify
In support of labwc@8b8e37c2
2021-10-17 20:52:29 +01:00
Joshua Ashton
8b8e37c268 theme: Implement window.label.text.justify
Crosses off 6.12.1

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 20:50:13 +01:00
Joshua Ashton
140c245880 xdg: Respect min/max size in configure
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 19:49:05 +01:00
Joshua Ashton
d9b021916a xwayland: Handle min width/height in configure
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 19:49:05 +01:00
Joshua Ashton
1db6c54e59 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>
2021-10-17 19:49:05 +01:00
Joshua Ashton
a6e1ee0a25 include: Add min/max helpers
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 19:49:05 +01:00
Joshua Ashton
8652f97887 view: Add view_min_size helper function
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 19:49:05 +01:00
Joshua Ashton
62123dc37e xwayland: Implement resize event
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 18:23:15 +01:00
Joshua Ashton
2a18899689 xwayland: Implement move event
Closes: #81
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 18:23:15 +01:00
Joshua Ashton
a67e74670b 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>
2021-10-17 12:22:01 +01:00
Joshua Ashton
f12617deea 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>
2021-10-17 12:21:49 +01:00
Joshua Ashton
8e3108c032 action: Add 'SnapToEdge'
Implements snap-style edge snapping that works between multiple monitors.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 12:19:35 +01:00
Joshie
6bcefc27a8 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>
2021-10-17 11:59:02 +01:00
Johan Malm
e2ae63a7cf xdg/wayland-shell: handle set_app_id and set_class events 2021-10-16 21:50:56 +01:00
Johan Malm
e140682528 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.
2021-10-16 21:26:57 +01:00