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
This commit is contained in:
Havoc Pennington 2002-05-27 19:26:56 +00:00 committed by Havoc Pennington
parent 2eeb984e4e
commit aad6035c57
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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
2002-05-27 Kjartan Maraas <kmaraas@gnome.org>
* autogen.sh: Hook up intltoolize here.

View File

@ -1,5 +1,6 @@
[Desktop Entry]
Name=Metacity
Name[no]=Metacity
Exec=metacity
[Window Manager]

View File

@ -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;