]> Dogcows Code - chaz/openbox/commitdiff
always send the event on a final configure even if there was no real move
authorDana Jansens <danakj@orodu.net>
Mon, 24 Mar 2003 20:09:31 +0000 (20:09 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 24 Mar 2003 20:09:31 +0000 (20:09 +0000)
openbox/client.c

index 4d2710ee376862716d3164deaf32031eb7938c88..67b9564710531210bb1807f34739d508a8b311da 100644 (file)
@@ -1405,28 +1405,26 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h,
         if (moved || resized)
             engine_frame_adjust_area(self->frame, moved, resized);
 
-       if (moved) {
-           if (!user || final) {
-               XEvent event;
-               event.type = ConfigureNotify;
-               event.xconfigure.display = ob_display;
-               event.xconfigure.event = self->window;
-               event.xconfigure.window = self->window;
+        if (!user || final) {
+            XEvent event;
+            event.type = ConfigureNotify;
+            event.xconfigure.display = ob_display;
+            event.xconfigure.event = self->window;
+            event.xconfigure.window = self->window;
     
-               /* root window coords with border in mind */
-               event.xconfigure.x = x - self->border_width +
-                   self->frame->size.left;
-               event.xconfigure.y = y - self->border_width +
-                   self->frame->size.top;
+            /* root window coords with border in mind */
+            event.xconfigure.x = x - self->border_width +
+                self->frame->size.left;
+            event.xconfigure.y = y - self->border_width +
+                self->frame->size.top;
     
-               event.xconfigure.width = self->area.width;
-               event.xconfigure.height = self->area.height;
-               event.xconfigure.border_width = self->border_width;
-               event.xconfigure.above = self->frame->plate;
-               event.xconfigure.override_redirect = FALSE;
-               XSendEvent(event.xconfigure.display, event.xconfigure.window,
-                          FALSE, StructureNotifyMask, &event);
-           }
+            event.xconfigure.width = self->area.width;
+            event.xconfigure.height = self->area.height;
+            event.xconfigure.border_width = self->border_width;
+            event.xconfigure.above = self->frame->plate;
+            event.xconfigure.override_redirect = FALSE;
+            XSendEvent(event.xconfigure.display, event.xconfigure.window,
+                       FALSE, StructureNotifyMask, &event);
        }
     }
 }
This page took 0.027497 seconds and 4 git commands to generate.