diff options
Diffstat (limited to 'libwnck/wnck-handle.c')
-rw-r--r-- | libwnck/wnck-handle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libwnck/wnck-handle.c b/libwnck/wnck-handle.c index e6d776b..0ea789e 100644 --- a/libwnck/wnck-handle.c +++ b/libwnck/wnck-handle.c @@ -185,6 +185,10 @@ init_xres (WnckHandle *self) int minor; xdisplay = _wnck_get_default_display (); + + if (xdisplay == NULL) + return; + event_base = error_base = major = minor = 0; if (XResQueryExtension (xdisplay, &event_base, &error_base) && |