mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-28 05:40:18 -04:00
Backported fix for crash when moving/resizing focused NULL surface
This commit is contained in:
parent
73eb94d18a
commit
80bc1d51cd
1 changed files with 0 additions and 6 deletions
|
|
@ -309,12 +309,6 @@ static void begin_interactive(struct wb_toplevel *toplevel,
|
|||
* compositor stops propagating pointer events to clients and instead
|
||||
* consumes them itself, to move or resize windows. */
|
||||
struct wb_server *server = toplevel->server;
|
||||
struct wlr_surface *focused_surface =
|
||||
server->seat->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->cursor->cursor_mode = mode;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue