Prevent rare crash due to layering move / resize / menu operations

Fixes #817

Reported-by: @kode54
This commit is contained in:
Consolatis 2023-03-07 22:59:56 +01:00 committed by Johan Malm
parent 43fb969b19
commit 5aa5c12371
2 changed files with 10 additions and 0 deletions

View file

@ -28,6 +28,10 @@ interactive_begin(struct view *view, enum input_mode mode, uint32_t edges)
struct seat *seat = &server->seat;
struct wlr_box geometry = view->current;
if (server->input_mode != LAB_INPUT_STATE_PASSTHROUGH) {
return;
}
switch (mode) {
case LAB_INPUT_STATE_MOVE:
if (view->fullscreen) {