fixes for building with gdk 2.0
2002-07-29 jacob berkman <jacob@ximian.com> * applier.c (set_root_pixmap): (make_root_pixmap): fixes for building with gdk 2.0
This commit is contained in:
parent
1f18e59fb4
commit
fc7396ec43
2 changed files with 14 additions and 0 deletions
|
@ -1427,7 +1427,12 @@ make_root_pixmap (GdkScreen *screen, gint width, gint height)
|
|||
|
||||
gdk_flush ();
|
||||
|
||||
#ifdef HAVE_GTK_MULTIHEAD
|
||||
display_name = DisplayString (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
|
||||
#else
|
||||
display_name = DisplayString (GDK_DISPLAY ());
|
||||
#endif
|
||||
|
||||
display = XOpenDisplay (display_name);
|
||||
|
||||
if (display == NULL) {
|
||||
|
@ -1491,7 +1496,11 @@ set_root_pixmap (GdkPixmap *pixmap, GdkScreen *screen)
|
|||
else
|
||||
pixmap_id = 0;
|
||||
|
||||
#ifdef HAVE_GTK_MULTIHEAD
|
||||
display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
|
||||
#else
|
||||
display = GDK_DISPLAY ();
|
||||
#endif
|
||||
|
||||
XGrabServer (display);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue