summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@gnu.org>2002-05-08 16:24:28 +0000
committerAnders Carlsson <andersca@src.gnome.org>2002-05-08 16:24:28 +0000
commit0494b044d50d60e153f5197ea130e7db57a97824 (patch)
tree81d912913ab5855cea45bab23d51c8536ec62350 /src/ui.c
parent3f7203a3a4d20a4c699475d74467afae579341d3 (diff)
downloadmetacity-0494b044d50d60e153f5197ea130e7db57a97824.tar.gz
Add multi-screen support. Also add patch by Erwann Chenede to make
2002-05-08 Anders Carlsson <andersca@gnu.org> * configure.in: * src/display.c: (meta_display_open): * src/fixedtip.c: (meta_fixed_tip_show): * src/fixedtip.h: * src/frames.c: (meta_frames_new), (show_tip_now): * src/frames.h: * src/menu.c: (meta_window_menu_new): * src/ui.c: (meta_ui_new): Add multi-screen support. Also add patch by Erwann Chenede to make tooltips appear on the correct screen.
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index e81acd7b..87eeef91 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -141,8 +141,8 @@ meta_ui_new (Display *xdisplay,
ui->xdisplay = xdisplay;
ui->xscreen = screen;
- /* FIXME when gtk has multihead use it here */
- ui->frames = meta_frames_new ();
+ g_assert (xdisplay == gdk_display);
+ ui->frames = meta_frames_new (XScreenNumberOfScreen (screen));
gtk_widget_realize (GTK_WIDGET (ui->frames));
return ui;