diff options
-rw-r--r-- | src/wlt_theme.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wlt_theme.c b/src/wlt_theme.c index c76693c..63e8033 100644 --- a/src/wlt_theme.c +++ b/src/wlt_theme.c @@ -493,6 +493,11 @@ static void widget_pointer_button(struct wlt_widget *widget, wlt_window_schedule_redraw(theme->wnd); } + /* prevent resize/move during fullscreen/maximized */ + if (wlt_window_is_maximized(theme->wnd) || + wlt_window_is_fullscreen(theme->wnd)) + return; + switch (theme->pointer_loc) { case LOC_RESIZE_LEFT: wlt_window_resize(theme->wnd, WL_SHELL_SURFACE_RESIZE_LEFT); |