summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
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 e81acd7..87eeef9 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;