summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-10-20 17:17:16 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-10-20 17:17:16 +0000
commit0c5cacf7ccc03bf299b5ccdcb56741d0bcd6125d (patch)
tree0e9f0ebc12faa57ea73a903570772281448e48ee
parent95e5a13131e5e9ad8232a97707e42ec058a690d3 (diff)
downloadmetacity-0c5cacf7ccc03bf299b5ccdcb56741d0bcd6125d.tar.gz
put multihead stuff in HAVE_GTK_MULTIHEAD, reported by John Palmieri
2002-10-20 Havoc Pennington <hp@pobox.com> * src/ui.c (meta_image_window_new): put multihead stuff in HAVE_GTK_MULTIHEAD, reported by John Palmieri
-rw-r--r--ChangeLog5
-rw-r--r--src/ui.c19
2 files changed, 18 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index fca4dcb4..721fb67f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2002-10-20 Havoc Pennington <hp@pobox.com>
+ * src/ui.c (meta_image_window_new): put multihead stuff in
+ HAVE_GTK_MULTIHEAD, reported by John Palmieri
+
+2002-10-20 Havoc Pennington <hp@pobox.com>
+
* src/keybindings.c (handle_raise_or_lower): check above->mapped
before deciding if it overlaps the window being raiselowered,
fix from Stephane Chauveau
diff --git a/src/ui.c b/src/ui.c
index 50f24be6..5074d6b0 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -309,15 +309,22 @@ meta_image_window_new (Display *xdisplay,
int max_height)
{
MetaImageWindow *iw;
- GdkDisplay *gdisplay;
- GdkScreen *gscreen;
-
- gdisplay = gdk_x11_lookup_xdisplay (xdisplay);
- gscreen = gdk_display_get_screen (gdisplay, screen_number);
iw = g_new (MetaImageWindow, 1);
iw->window = gtk_window_new (GTK_WINDOW_POPUP);
- gtk_window_set_screen (GTK_WINDOW (iw->window), gscreen);
+
+#ifdef HAVE_GTK_MULTIHEAD
+ {
+ GdkDisplay *gdisplay;
+ GdkScreen *gscreen;
+
+ gdisplay = gdk_x11_lookup_xdisplay (xdisplay);
+ gscreen = gdk_display_get_screen (gdisplay, screen_number);
+
+ gtk_window_set_screen (GTK_WINDOW (iw->window), gscreen);
+ }
+#endif
+
gtk_widget_realize (iw->window);
iw->pixmap = gdk_pixmap_new (iw->window->window,
max_width, max_height,