diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-11-23 10:22:47 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-11-23 10:49:08 +0100 |
commit | d3897ebdbf7e181d178e257c556346adb2be7258 (patch) | |
tree | 85efa91d2f10492c944788ef9cf22776c7e2159b /src/xrandr.c | |
parent | bba8ecc0f678b50f521ca06c69a88b7c9f0dc15c (diff) | |
download | ratpoison-d3897ebdbf7e181d178e257c556346adb2be7258.zip |
Fix rotations when using xrandr
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 |