Commit graph

1629 commits

Author SHA1 Message Date
Consolatis
e45fe0804d followMouse: allow focus switching via A-Tab
Fixes a regression caused by the recent enhancement of followMouse behavior.

Fixes: #849
Reported-by: mitigate via IRC
2023-03-26 20:02:04 +01:00
Johan Malm
33b98b19aa action: support SendToDesktop 'follow' option
Make follow 'true' by default as per Openbox 3.6 specification.
Note: this is an interface change.

Fixes: issue #841
2023-03-26 19:52:50 +02:00
Johan Malm
bdf6e13881 Move get_bool() to src/common/
...in preparation for sharing it more widely
2023-03-26 19:52:50 +02:00
Consolatis
471e3837b7 Decorations: always default to client side decorations
This is required as both decoration protocol variants, the xdg one
and the deprecated kde one, assume that an application that did not
negotiate any decorations will render client side decorations.
2023-03-25 07:24:40 +00:00
Johan Malm
ef30e3750d Decorations: handle results of kde-server-decoration negotiations 2023-03-25 07:24:40 +00:00
Consolatis
5ee2ec7fff Decorations: minor refactoring, no logical changes intended 2023-03-25 07:24:40 +00:00
Consolatis
35e71ada82 Decorations: respect earlier client side decoration negotion result
Before this patch, it was impossible to differentiate between negotiations
resulting in client side decorations and no negotiations at all.

By adding an enum we are now able to differentiate between the two states.
2023-03-25 07:24:40 +00:00
Consolatis
082dc79555 Decorations: prepare for the KDE protocol implementation 2023-03-25 07:24:40 +00:00
Consolatis
4e75125995 Decorations: respect earlier decoration negotiation results
Before this patch, setting `<decoration>` to `client` would cause applications
which prefer server side decorations to not have any decorations at all. This
patch fixes it by respecting the result of earlier negotiations via the
xdg-decoration-unstable-v1 protocol.

Fixes #297
Fixes #831
2023-03-25 07:24:40 +00:00
Johan Malm
f5c4651c67 cursor: fix focus.followMouse glitches
Update focus correctly when using `<focus><followMouse>` and (a) the
focused window is closed; and (b) after switching desktops using action
GoToDesktop. Issue #830

Written-by: @Consolatis
Reported-by: @jech
2023-03-23 23:02:29 +01:00
Johan Malm
7914d06760 build: bump version to 0.6.2 2023-03-20 20:21:09 +00:00
Johan Malm
714a921e79 NEWS.md: add notes on 0.6.2 2023-03-20 20:14:38 +00:00
Johan Malm
1b76b1c4c0 README.md: update gaming section on cursor confinement 2023-03-20 20:14:38 +00:00
Johan Malm
c0d142cfb8 config: enable windowSwitcher preview by default 2023-03-19 01:19:04 +01:00
Johan Malm
e392eecce6 config: change <cycleView*> to <windowSwitcher*>
Use `<windowSwitcher show="yes" preview="no" outlines="yes" />`
instead of

- `<cycleViewOSD>yes</cycleViewOSD>`
- `<cycleViewOutlines>yes</cycleViewOutlines>`
- `<cycleViewPreview>no</cycleViewPreview>`
2023-03-19 01:19:04 +01:00
Johan Malm
50a6c78db0
Merge pull request #800 from Consolatis/ci/web_deploy
CI: automatically rebuild labwc.github.io
2023-03-18 21:20:50 +00:00
Johan Malm
44c6cf6c1f protocols: remove redundant wlr-output-management 2023-03-11 20:40:33 +01:00
Consolatis
ce6b760b4b src/config/rcxml.c: reset default values on Reconfigure
Reported-by: <umk3> via IRC
2023-03-09 21:00:43 +00:00
Flrian
00ebcdc290 osd: add config option to disable osd 2023-03-08 21:54:47 +00:00
Consolatis
5aa5c12371 Prevent rare crash due to layering move / resize / menu operations
Fixes #817

Reported-by: @kode54
2023-03-07 22:23:46 +00:00
Consolatis
43fb969b19 src/keyboard.c: Fix wrong argument parsing
The `wlr_keyboard.events.modifiers` signal does not use
a `wlr_keyboard_key_event` as argument, instead it is a
pointer to the `wlr_keyboard` instance which caused the
signal.
2023-03-07 20:55:35 +00:00
Consolatis
a4fb5b093b Prevent cursor based region-snapping when starting a move with A-Left
When wanting to snap to a region when starting the move
operation with A-Left (or a similar mousebind which includes a
modifier), the modifier - or another one - must be pressed again.

Fixes #761
2023-03-07 20:55:35 +00:00
Consolatis
a0b5a80ce1 Add FocusOutput action
Fixes #806

Suggested-by: @EysseW
Tested-by: @EysseW
2023-03-06 21:58:11 +00:00
Consolatis
037dace5bc src/workspaces.c: update cursor focus
Fixes #807
2023-03-05 21:07:58 +00:00
John Lindgren
1824fc4b9a xdg: Reduce log priority of timeout message 2023-03-05 08:46:55 +00:00
John Lindgren
ea09fc3850 xdg: Detect pending configure request timeouts 2023-03-05 08:46:55 +00:00
John Lindgren
31ec8f050c xdg: Fix visual glitch when resizing xfce4-terminal from left edge 2023-03-05 08:46:55 +00:00
John Lindgren
0b34b9f69f view: Anchor right/bottom edge only when resizing via top/left edge
Currently, we anchor the right/bottom edge of the view whenever the top/
left edge is moving (current.x/y != pending.x/y). Doing so doesn't make
much sense when the right/bottom edge is also moving. In that case it's
probably best to move the view (or at least its top/left corner)
directly to its final position.

The most noticeable effect of this change is with views that don't
accept their requested size exactly when tiled or maximized (examples:
havoc, xfce4-terminal). Previously, their right-bottom corner would be
aligned with the screen edge, leaving gaps on the left and top. Now the
top-left corner will be aligned and the gaps will be on the right and
bottom. This is still not ideal, but IMHO less surprising to the user.
2023-03-05 08:46:55 +00:00
John Lindgren
9f00087a82 view: Comment updates 2023-03-05 08:44:03 +00:00
John Lindgren
331f62f662 view: Add view_set_output() 2023-03-05 08:44:03 +00:00
John Lindgren
55c6280322 view: Add documentation for view->output 2023-03-05 08:44:03 +00:00
John Lindgren
60fbb44f6a view: Eliminate view_output() and use view->output directly 2023-03-05 08:44:03 +00:00
John Lindgren
799f81ae05 view: Make view_apply_special_geometry() return void
This makes the conditions for calling it explicit and more obvious.
2023-03-05 08:44:03 +00:00
John Lindgren
0cc6ea2d8b view: Set output prior to view_apply_tiled_geometry() 2023-03-05 08:44:03 +00:00
John Lindgren
a9cbbe1e41 view: Set view->output prior to calling view_center() 2023-03-05 08:44:03 +00:00
John Lindgren
bdbbbb2e62 xdg: Set view->output prior to view_set_fullscreen() 2023-03-05 08:44:03 +00:00
John Lindgren
ed19bc4f9e xdg,xwayland: Set initial output for views 2023-03-05 08:44:03 +00:00
John Lindgren
64bea4f511 view: Attempt to keep non-floating views on the same output
- Make view_discover_output() static
- Call view_discover_output() only for floating views
- Deprecate view_output(); make it use view->output when possible
2023-03-05 08:44:03 +00:00
Consolatis
c33a404dc1 Add ToggleKeybinds action
This can be used to better control Virtual Machines, VNC clients, nested
compositors or similar. All keybinds other than ToggleKeybinds itself are
disabled when first called, a 2nd call will restore handling of all keybinds.

Fixes #738
Fixes #810
2023-03-04 13:24:59 +00:00
Johan Malm
d571b0b28a xdg/xwayland: remove unnecessary assert()s 2023-02-24 22:56:00 +01:00
Johan Malm
6819dcee78 Move common xdg/xwayland handle_destroy() code to view_destroy() 2023-02-24 22:56:00 +01:00
Johan Malm
ecbe699f94 view: make request_activate listener xwayland only 2023-02-24 22:56:00 +01:00
Johan Malm
665b6503e1 src/xdg.c: remove all listeners in handle_destroy() 2023-02-24 22:56:00 +01:00
Consolatis
22ba7f6744 src/cursor.c: add cursor lock confinement 2023-02-24 21:32:25 +00:00
Ph42oN
c25e2c7a7d src/cursor.c: Implement cursor constraints 2023-02-24 21:32:25 +00:00
Johan Malm
06044799dd xwayland.c: prefix view_impl functions with xwayland_view_
...to make it consistent with xdg.c
2023-02-24 20:42:01 +00:00
Johan Malm
b8ec5a3e2e view: add move_to_front to struct view_impl
...to increase xwayland and xdg-shell encapsulation and to avoid passing a
function pointer as an argument in `xwayland_move_sub_views_to_front()`
which is inconsistent with labwc design patterns.

Rename view-impl.c to view-impl-common.c

Move function declarations that are common to view-implementations from
view.h into view-impl-common.h
2023-02-24 20:42:01 +00:00
Consolatis
440372c2da CI: Add hwdata to FreeBSD build requirements 2023-02-24 15:06:44 +01:00
Consolatis
0b68d58e84 CI: automatically rebuild labwc.github.io 2023-02-24 13:53:10 +01:00
NorwayFun
e9d507bbbf po: Add Georgian translation 2023-02-22 11:33:26 +01:00