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
This commit is contained in:
parent
95e5a13131
commit
0c5cacf7cc
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2002-10-20 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* src/keybindings.c (handle_raise_or_lower): check above->mapped
|
* src/keybindings.c (handle_raise_or_lower): check above->mapped
|
||||||
|
11
src/ui.c
11
src/ui.c
@ -309,15 +309,22 @@ meta_image_window_new (Display *xdisplay,
|
|||||||
int max_height)
|
int max_height)
|
||||||
{
|
{
|
||||||
MetaImageWindow *iw;
|
MetaImageWindow *iw;
|
||||||
|
|
||||||
|
iw = g_new (MetaImageWindow, 1);
|
||||||
|
iw->window = gtk_window_new (GTK_WINDOW_POPUP);
|
||||||
|
|
||||||
|
#ifdef HAVE_GTK_MULTIHEAD
|
||||||
|
{
|
||||||
GdkDisplay *gdisplay;
|
GdkDisplay *gdisplay;
|
||||||
GdkScreen *gscreen;
|
GdkScreen *gscreen;
|
||||||
|
|
||||||
gdisplay = gdk_x11_lookup_xdisplay (xdisplay);
|
gdisplay = gdk_x11_lookup_xdisplay (xdisplay);
|
||||||
gscreen = gdk_display_get_screen (gdisplay, screen_number);
|
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_window_set_screen (GTK_WINDOW (iw->window), gscreen);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
gtk_widget_realize (iw->window);
|
gtk_widget_realize (iw->window);
|
||||||
iw->pixmap = gdk_pixmap_new (iw->window->window,
|
iw->pixmap = gdk_pixmap_new (iw->window->window,
|
||||||
max_width, max_height,
|
max_width, max_height,
|
||||||
|
Loading…
Reference in New Issue
Block a user