From 5f68322dd22de840fe7bdf29617cd1f9427f25ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 14 Feb 2013 16:31:42 -0500 Subject: [PATCH] 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 --- clients/window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clients/window.c b/clients/window.c index 3d23b3ae0..5dbd992d6 100644 --- a/clients/window.c +++ b/clients/window.c @@ -1721,6 +1721,9 @@ frame_get_pointer_image_for_location(struct frame *frame, struct input *input) 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, @@ -1836,6 +1839,9 @@ frame_button_handler(struct widget *widget, 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,