window.c: Don't allow moving a maximized window
Ideally the shell would send an unmaximize event to the client when
we try to move a maximized window, but for now, let's just prevent
moving maximized windows.
https://bugs.freedesktop.org/show_bug.cgi?id=56296
diff --git a/clients/window.c b/clients/window.c
index 9752e7e..1c5c285 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -2083,6 +2083,9 @@
struct window *window = frame->widget->window;
int location;
+ if (window->type != TYPE_TOPLEVEL)
+ return CURSOR_LEFT_PTR;
+
location = theme_get_location(t, input->sx, input->sy,
frame->widget->allocation.width,
frame->widget->allocation.height,
@@ -2200,6 +2203,9 @@
struct display *display = window->display;
int location;
+ if (window->type != TYPE_TOPLEVEL)
+ return;
+
location = theme_get_location(display->theme, input->sx, input->sy,
frame->widget->allocation.width,
frame->widget->allocation.height,