From 0494b044d50d60e153f5197ea130e7db57a97824 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Wed, 8 May 2002 16:24:28 +0000 Subject: Add multi-screen support. Also add patch by Erwann Chenede to make 2002-05-08 Anders Carlsson * 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. --- src/fixedtip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/fixedtip.c') diff --git a/src/fixedtip.c b/src/fixedtip.c index fb016a3..690576b 100644 --- a/src/fixedtip.c +++ b/src/fixedtip.c @@ -36,13 +36,16 @@ expose_handler (GtkTooltips *tooltips) } void -meta_fixed_tip_show (Display *xdisplay, +meta_fixed_tip_show (Display *xdisplay, int screen_number, int root_x, int root_y, const char *markup_text) { if (tip == NULL) { tip = gtk_window_new (GTK_WINDOW_POPUP); + gtk_window_set_screen (GTK_WINDOW (tip), + gdk_display_get_screen (gdk_get_default_display (), + screen_number)); gtk_widget_set_app_paintable (tip, TRUE); gtk_window_set_policy (GTK_WINDOW (tip), FALSE, FALSE, TRUE); gtk_widget_set_name (tip, "gtk-tooltips"); -- cgit v1.1