diff options
Diffstat (limited to 'src/xrandr.c')
-rw-r--r-- | src/xrandr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xrandr.c b/src/xrandr.c index 1425178..2534099 100644 --- a/src/xrandr.c +++ b/src/xrandr.c @@ -210,7 +210,10 @@ xrandr_crtc_change (XRRCrtcChangeNotifyEvent *ev) if (!screen) return; - screen_update (screen, ev->x, ev->y, ev->width, ev->height); + if (ev->rotation == RR_Rotate_90 || ev->rotation == RR_Rotate_270) + screen_update (screen, ev->x, ev->y, ev->height, ev->width); + else + screen_update (screen, ev->x, ev->y, ev->width, ev->height); } void |