mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
verify the active window has the appropriate close/minimize function
2002-06-10 Erwann Chenede - <erwann.chenede@sun.com> * src/keybindings.c : (handle_close_window, handle_minimize_window) verify the active window has the appropriate close/minimize function before closing or minimizing the window.
This commit is contained in:
parent
bab3f73370
commit
4dfc8d16be
@ -1,3 +1,9 @@
|
||||
2002-06-10 Erwann Chenede - <erwann.chenede@sun.com>
|
||||
|
||||
* src/keybindings.c : (handle_close_window, handle_minimize_window)
|
||||
verify the active window has the appropriate close/minimize function
|
||||
before closing or minimizing the window.
|
||||
|
||||
2002-06-09 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* configure.in: 2.3.987
|
||||
|
@ -1743,7 +1743,8 @@ handle_close_window (MetaDisplay *display,
|
||||
MetaKeyBinding *binding)
|
||||
{
|
||||
if (window)
|
||||
meta_window_delete (window, event->xkey.time);
|
||||
if (window->has_close_func)
|
||||
meta_window_delete (window, event->xkey.time);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1753,7 +1754,8 @@ handle_minimize_window (MetaDisplay *display,
|
||||
MetaKeyBinding *binding)
|
||||
{
|
||||
if (window)
|
||||
meta_window_minimize (window);
|
||||
if (window->has_minimize_func)
|
||||
meta_window_minimize (window);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user