Skip to content

Commit

Permalink
Before using any Xres extension one must call XResQueryExtension()
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim-tjernlund committed Dec 19, 2022
1 parent 9c8e956 commit 0effb64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include "compositor.h"
#include <X11/Xatom.h>
#include <X11/cursorfont.h>
#include <X11/extensions/XRes.h>

#ifdef HAVE_SOLARIS_XINERAMA
#include <X11/extensions/xinerama.h>
Expand Down Expand Up @@ -329,7 +330,7 @@ meta_display_open (void)
Display *xdisplay;
GSList *screens;
GSList *tmp;
int i;
int i, event_base, error_base;
guint32 timestamp;

/* A list of all atom names, so that we can intern them in one go. */
Expand All @@ -350,6 +351,9 @@ meta_display_open (void)
XDisplayName (NULL));
return FALSE;
}
/* Make sure to init Xres any extensions */
if (!XResQueryExtension(xdisplay, &event_base, &error_base))
meta_verbose ("No XRes extensions.\n")

if (meta_is_syncing ())
XSynchronize (xdisplay, True);
Expand Down

0 comments on commit 0effb64

Please sign in to comment.