diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2013-07-20 21:59:15 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2013-07-20 21:59:15 -0700 |
commit | 5c581ff5a5e43ee9abd4d4b5043a7978f24280dd (patch) | |
tree | de5472f60aabc44d0f324cd177ae6d53d84b8424 /xorg/tests/randr | |
parent | 058e2ecd2824475bb3866c89bab24cefab1b7f06 (diff) | |
download | xrdp-proprietary-5c581ff5a5e43ee9abd4d4b5043a7978f24280dd.tar.gz xrdp-proprietary-5c581ff5a5e43ee9abd4d4b5043a7978f24280dd.zip |
added more randr test logging
Diffstat (limited to 'xorg/tests/randr')
-rw-r--r-- | xorg/tests/randr/trandr.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xorg/tests/randr/trandr.c b/xorg/tests/randr/trandr.c index 77ce2c33..b50f5ac2 100644 --- a/xorg/tests/randr/trandr.c +++ b/xorg/tests/randr/trandr.c @@ -31,17 +31,22 @@ #include <X11/extensions/Xrandr.h> static int -process_randr(Display *disp, Window win, int event_base, XEvent *ev) +process_randr(Display *disp, Screen *screen, int screenNumber, Window win, + int event_base, XEvent *ev) { XRRScreenChangeNotifyEvent *rr_screen_change_notify; switch (ev->type - event_base) { case RRScreenChangeNotify: + XRRUpdateConfiguration(ev); rr_screen_change_notify = (XRRScreenChangeNotifyEvent *) ev; printf("RRScreenChangeNotify: width %d height %d\n", rr_screen_change_notify->width, rr_screen_change_notify->height); + printf("DisplayWidth %d DisplayHeight %d\n", + DisplayWidth(disp, screenNumber), + DisplayHeight(disp, screenNumber)); break; } return 0; @@ -128,7 +133,8 @@ main(int argc, char **argv) (ev.type < rr_event_base + RRNumberEvents)) { printf("randr\n"); - process_randr(disp, win, rr_event_base, &ev); + process_randr(disp, screen, screenNumber, win, + rr_event_base, &ev); } break; } |