]> Pileus Git - wmpus/commitdiff
Fix configure request xcb
authorAndy Spencer <andy753421@gmail.com>
Sun, 19 Apr 2015 04:38:31 +0000 (04:38 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 19 Apr 2015 04:40:42 +0000 (04:40 +0000)
sys-xcb.c

index 82e91a709bc90e173ecb7dd8de4a96b1a1ebd039..06e4d8818c29129935bef41c6d559428c022d881 100644 (file)
--- a/sys-xcb.c
+++ b/sys-xcb.c
@@ -737,10 +737,12 @@ static void on_configure_request(xcb_configure_request_event_t *event)
                        event->x, event->y);
        if (!win) return;
 
                        event->x, event->y);
        if (!win) return;
 
-       win->x = event->x;
-       win->y = event->y;
-       win->w = event->width;
-       win->h = event->height;
+       if (!win->sys->managed) {
+               win->x = event->x;
+               win->y = event->y;
+               win->w = event->width;
+               win->h = event->height;
+       }
 
        xcb_configure_notify_event_t resp = {
                .response_type = XCB_CONFIGURE_NOTIFY,
 
        xcb_configure_notify_event_t resp = {
                .response_type = XCB_CONFIGURE_NOTIFY,