summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-05-27 19:26:56 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-05-27 19:26:56 +0000
commitaad6035c578337c45de030663aa19c82c4b55dd6 (patch)
tree59455d181168ddef01862f548d6183c18e90f891 /src/window.c
parent2eeb984e4eadfec79dc3ff2b20e49ffbe9ee1559 (diff)
downloadmetacity-aad6035c578337c45de030663aa19c82c4b55dd6.tar.gz
metacity-aad6035c578337c45de030663aa19c82c4b55dd6.tar.bz2
search for the window's screen by root window instead of Screen*, maybe it
2002-05-27 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_new): search for the window's screen by root window instead of Screen*, maybe it will help with bug #82664
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 9de6104..a3f3020 100644
--- a/src/window.c
+++ b/src/window.c
@@ -282,7 +282,9 @@ meta_window_new (MetaDisplay *display, Window xwindow,
tmp = display->screens;
while (tmp != NULL)
{
- if (((MetaScreen *)tmp->data)->xscreen == attrs.screen)
+ MetaScreen *scr = tmp->data;
+
+ if (scr->xroot == attrs.root)
{
window->screen = tmp->data;
break;