mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 14:38:09 +02:00
xwayland: "Accept" confineTo on InputOnly windows
Of sorts, actually make it confine to the pointer focus, as the
InputOnly window is entirely invisible to xwayland accounting,
we don't have a xwl_window for it.
Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit fafdb0cc96)
This commit is contained in:
parent
420f77a1ba
commit
0e5b08f2ee
1 changed files with 9 additions and 0 deletions
|
|
@ -224,6 +224,15 @@ xwl_cursor_confined_to(DeviceIntPtr device,
|
|||
}
|
||||
|
||||
xwl_window = xwl_window_from_window(window);
|
||||
if (!xwl_window && xwl_seat->focus_window) {
|
||||
/* Allow confining on InputOnly windows, but only if the geometry
|
||||
* is the same than the focus window.
|
||||
*/
|
||||
if (window->drawable.class == InputOnly) {
|
||||
DebugF("Confine on InputOnly window, assuming pointer focus\n");
|
||||
xwl_window = xwl_seat->focus_window;
|
||||
}
|
||||
}
|
||||
if (!xwl_window)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue