mirror of https://github.com/fltk/fltk
Fix potential NULL pointer dereference, if !XineramaIsActive(...).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
385ab5f354
commit
c53313ac6e
|
@ -259,7 +259,7 @@ void Fl::screen_xywh(int &X, int &Y, int &W, int &H, int n) {
|
|||
}
|
||||
#else
|
||||
#if HAVE_XINERAMA
|
||||
if (num_screens > 0) {
|
||||
if (num_screens > 0 && screens) {
|
||||
X = screens[n].x_org;
|
||||
Y = screens[n].y_org;
|
||||
W = screens[n].width;
|
||||
|
|
Loading…
Reference in New Issue