1
0
Fork 0

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:
Erwann Chenede - 2002-06-10 10:17:54 +00:00 committed by Erwann Chenede
parent bab3f73370
commit 4dfc8d16be
2 changed files with 10 additions and 2 deletions

View file

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

View file

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