@ -712,13 +712,7 @@ static void begin_interactive(struct tinywl_toplevel *toplevel,
* compositor stops propegating pointer events to clients and instead
* compositor stops propegating pointer events to clients and instead
* consumes them itself , to move or resize windows . */
* consumes them itself , to move or resize windows . */
struct tinywl_server * server = toplevel - > server ;
struct tinywl_server * server = toplevel - > server ;
struct wlr_surface * focused_surface =
server - > seat - > pointer_state . focused_surface ;
if ( toplevel - > xdg_toplevel - > base - > surface ! =
wlr_surface_get_root_surface ( focused_surface ) ) {
/* Deny move/resize requests from unfocused clients. */
return ;
}
server - > grabbed_toplevel = toplevel ;
server - > grabbed_toplevel = toplevel ;
server - > cursor_mode = mode ;
server - > cursor_mode = mode ;