mirror of
https://github.com/brl/mutter.git
synced 2025-08-04 15:45:54 +00:00
call meta_image_window_new in multihead-safe way
2002-10-18 Havoc Pennington <hp@redhat.com> * src/effects.c (meta_effects_draw_box_animation): call meta_image_window_new in multihead-safe way * src/ui.c (meta_image_window_new): multihead safety
This commit is contained in:

committed by
Havoc Pennington

parent
915c2db3b9
commit
70b6a57003
12
src/ui.c
12
src/ui.c
@@ -303,13 +303,21 @@ struct _MetaImageWindow
|
||||
};
|
||||
|
||||
MetaImageWindow*
|
||||
meta_image_window_new (int max_width,
|
||||
int max_height)
|
||||
meta_image_window_new (Display *xdisplay,
|
||||
int screen_number,
|
||||
int max_width,
|
||||
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);
|
||||
gtk_widget_realize (iw->window);
|
||||
iw->pixmap = gdk_pixmap_new (iw->window->window,
|
||||
max_width, max_height,
|
||||
|
Reference in New Issue
Block a user