diff options
-rw-r--r-- | main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -41,7 +41,10 @@ int main(void) { XNextEvent(display, &result.xev); if (result.xev.type == (xrr_event_base + RRScreenChangeNotify)) { - XMoveResizeWindow(display, focus, 0, 0, result.xrrev.width, result.xrrev.height); + // cannot resize root window + if (focus != 0x1) { + XMoveResizeWindow(display, focus, 0, 0, result.xrrev.width, result.xrrev.height); + } } //printf("derp\n"); |