Fix STR #2643: derefenced NULL pointer, if Xinerama is available, but inactive.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
c690c6fb1c
commit
203f4d8c7e
@ -237,7 +237,7 @@ void Fl::screen_xywh(int &X, int &Y, int &W, int &H, int mx, int my) {
|
||||
}
|
||||
}
|
||||
#elif HAVE_XINERAMA
|
||||
if (num_screens > 0) {
|
||||
if (num_screens > 0 && screens) { // screens == NULL if !XineramaIsActive(fl_display)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < num_screens; i ++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user