set net_supporting_wm_check in addition to win_supporting_wm_check, patch

2002-06-08  Havoc Pennington  <hp@pobox.com>

	* src/display.c (meta_display_open): set net_supporting_wm_check
	in addition to win_supporting_wm_check, patch from
	JeyaSudha for #83365

	* src/screen.c (set_wm_check_hint): remove setting
	win_supporting_wm_check on leader window here, done already in
	display.c
This commit is contained in:
Havoc Pennington 2002-06-09 00:09:01 +00:00 committed by Havoc Pennington
parent 1efd5432ef
commit 459d8f9c9d
4 changed files with 18 additions and 6 deletions

View File

@ -1,3 +1,13 @@
2002-06-08 Havoc Pennington <hp@pobox.com>
* src/display.c (meta_display_open): set net_supporting_wm_check
in addition to win_supporting_wm_check, patch from
JeyaSudha for #83365
* src/screen.c (set_wm_check_hint): remove setting
win_supporting_wm_check on leader window here, done already in
display.c
2002-06-08 Havoc Pennington <hp@pobox.com>
* src/keybindings.c (meta_window_ungrab_keys): set keys_grabbed to

View File

@ -457,6 +457,12 @@ meta_display_open (const char *name)
display->atom_win_supporting_wm_check,
XA_CARDINAL,
32, PropModeReplace, (guchar*) data, 1);
XChangeProperty (display->xdisplay,
display->leader_window,
display->atom_net_supporting_wm_check,
XA_CARDINAL,
32, PropModeReplace, (guchar*) data, 1);
}
/* Now manage all existing windows */

View File

@ -748,6 +748,8 @@ meta_window_ungrab_keys (MetaWindow *window)
else if (!window->grab_on_frame)
ungrab_all_keys (window->display,
window->xwindow);
window->keys_grabbed = FALSE;
}
}

View File

@ -67,12 +67,6 @@ set_wm_check_hint (MetaScreen *screen)
/* Legacy GNOME hint (uses cardinal, dunno why) */
/* legacy hint window should have property containing self */
XChangeProperty (screen->display->xdisplay, screen->display->leader_window,
screen->display->atom_win_supporting_wm_check,
XA_CARDINAL,
32, PropModeReplace, (guchar*) data, 1);
/* do this after setting up window fully, to avoid races
* with clients listening to property notify on root.
*/