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>
|
2002-06-09 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* configure.in: 2.3.987
|
* configure.in: 2.3.987
|
||||||
|
@ -1743,6 +1743,7 @@ handle_close_window (MetaDisplay *display,
|
|||||||
MetaKeyBinding *binding)
|
MetaKeyBinding *binding)
|
||||||
{
|
{
|
||||||
if (window)
|
if (window)
|
||||||
|
if (window->has_close_func)
|
||||||
meta_window_delete (window, event->xkey.time);
|
meta_window_delete (window, event->xkey.time);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1753,6 +1754,7 @@ handle_minimize_window (MetaDisplay *display,
|
|||||||
MetaKeyBinding *binding)
|
MetaKeyBinding *binding)
|
||||||
{
|
{
|
||||||
if (window)
|
if (window)
|
||||||
|
if (window->has_minimize_func)
|
||||||
meta_window_minimize (window);
|
meta_window_minimize (window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user