]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
don't set the above member in synthetic configurenotify events
[chaz/openbox] / openbox / client.c
index 148bc6490bea0730f2cc1ceb9a7381eb2eb97e08..1683c6082d1bfff657322164df45dd68af9955ba 100644 (file)
@@ -2872,14 +2872,14 @@ void client_configure(ObClient *self, gint x, gint y, gint w, gint h, gint b,
         event.xconfigure.width = w;
         event.xconfigure.height = h;
         event.xconfigure.border_width = self->border_width;
-        event.xconfigure.above = self->frame->plate;
+        event.xconfigure.above = None;
         event.xconfigure.override_redirect = FALSE;
         XSendEvent(event.xconfigure.display, event.xconfigure.window,
                    FALSE, StructureNotifyMask, &event);
     }
 
     /* if the client is shrinking, then resize the frame before the client */
-    if (send_resize_client && (w <= oldw || h <= oldh)) {
+    if (send_resize_client && (w <= oldw && h <= oldh)) {
         /* resize the plate to show the client padding color underneath */
         frame_adjust_client_area(self->frame);
 
This page took 0.026682 seconds and 4 git commands to generate.