mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-25 19:29:49 +01:00
tinywl: fix check whether client is focused or not
Currently this check is too strict and denies the move/resize request if a subsurface of the client has pointer focus.
This commit is contained in:
parent
50827ed7f5
commit
89dc9a4496
1 changed files with 2 additions and 1 deletions
|
@ -612,7 +612,8 @@ static void begin_interactive(struct tinywl_view *view,
|
|||
struct tinywl_server *server = view->server;
|
||||
struct wlr_surface *focused_surface =
|
||||
server->seat->pointer_state.focused_surface;
|
||||
if (view->xdg_surface->surface != focused_surface) {
|
||||
if (view->xdg_surface->surface !=
|
||||
wlr_surface_get_root_surface(focused_surface)) {
|
||||
/* Deny move/resize requests from unfocused clients. */
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue