mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
remove unmanaged windows from save set, and unselect input so we don't get
2002-03-27 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_free): remove unmanaged windows from save set, and unselect input so we don't get events from them. Fixes annoying bug where withdrawn windows would decide to map themselves due to save set stuff.
This commit is contained in:
parent
1e28a50647
commit
4aea4e7dc6
@ -1,3 +1,11 @@
|
||||
2002-03-27 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/window.c (meta_window_free): remove
|
||||
unmanaged windows from save set, and unselect
|
||||
input so we don't get events from them. Fixes annoying
|
||||
bug where withdrawn windows would decide to map themselves
|
||||
due to save set stuff.
|
||||
|
||||
2002-03-22 Zbigniew Chyla <cyba@gnome.pl>
|
||||
|
||||
* configure.in (ALL_LINGUAS): Added pl (Polish).
|
||||
|
13
src/window.c
13
src/window.c
@ -817,12 +817,23 @@ meta_window_free (MetaWindow *window)
|
||||
|
||||
meta_display_unregister_x_window (window->display, window->xwindow);
|
||||
|
||||
/* Put back anything we messed up */
|
||||
|
||||
meta_error_trap_push (window->display);
|
||||
|
||||
/* Put back anything we messed up */
|
||||
if (window->border_width != 0)
|
||||
XSetWindowBorderWidth (window->display->xdisplay,
|
||||
window->xwindow,
|
||||
window->border_width);
|
||||
|
||||
/* No save set */
|
||||
XRemoveFromSaveSet (window->display->xdisplay,
|
||||
window->xwindow);
|
||||
|
||||
/* Don't get events on not-managed windows */
|
||||
XSelectInput (window->display->xdisplay,
|
||||
window->xwindow,
|
||||
NoEventMask);
|
||||
|
||||
meta_error_trap_pop (window->display);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user