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. (cherry picked from commit 89dc9a44968fbd3fe8a08a41858d1537ee145668)
This commit is contained in:
parent
a819c512ec
commit
eb1a451803
|
@ -611,7 +611,8 @@ static void begin_interactive(struct tinywl_view *view,
|
||||||
struct tinywl_server *server = view->server;
|
struct tinywl_server *server = view->server;
|
||||||
struct wlr_surface *focused_surface =
|
struct wlr_surface *focused_surface =
|
||||||
server->seat->pointer_state.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. */
|
/* Deny move/resize requests from unfocused clients. */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue