diff options
author | Sven Gothel <sgothel@jausoft.com> | 2015-08-18 03:39:04 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2015-08-18 03:39:04 +0200 |
commit | 351e222518af6970e63098b8b94c3ab7d8994b34 (patch) | |
tree | 8d8163e5eff48de621084bf63177e9ca5614eafb /src | |
parent | 576ba0b8334dae8ab8b0b2686422d450c7f360da (diff) | |
parent | a213c39fa9d741d519df56bc4d4abb86113985f4 (diff) |
Merge branch 'Bug1183' of https://github.com/xranby/jogl
Diffstat (limited to 'src')
-rw-r--r-- | src/newt/native/X11RandR13.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/newt/native/X11RandR13.c b/src/newt/native/X11RandR13.c index 0dd53feb8..3f9dff289 100644 --- a/src/newt/native/X11RandR13.c +++ b/src/newt/native/X11RandR13.c @@ -39,6 +39,14 @@ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_x11_RandR13_getScreenResources0 Display *dpy = (Display *) (intptr_t) display; Window root = RootWindow(dpy, (int)screen_idx); + /* Bug 1183 + * XRRGetScreenResourcesCurrent (or XRRGetScreenResources) + * _occasionally_ reports empty data + * unless XRRGetScreenSizeRange has been called once. + */ + int minWidth, minHeight, maxWidth, maxHeight; + XRRGetScreenSizeRange ( dpy, root, &minWidth, &minHeight, &maxWidth, &maxHeight); + XRRScreenResources *res = XRRGetScreenResourcesCurrent( dpy, root); // 1.3 // XRRScreenResources *res = XRRGetScreenResources( dpy, root); // 1.2 |