[Xfce4-commits] [apps/xfce4-taskmanager] 01/01: Fix closing taskman with Esc (Bug #16656)
noreply at xfce.org
noreply at xfce.org
Sat Apr 11 00:09:22 CEST 2020
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-taskmanager.
commit 6c78030661f9a490650cfda7a5b48e3c55f6076e
Author: Andre Miranda <andreldm at xfce.org>
Date: Sat Apr 11 00:08:35 2020 +0200
Fix closing taskman with Esc (Bug #16656)
---
src/process-window.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/process-window.c b/src/process-window.c
index 4f85303..5d99de0 100644
--- a/src/process-window.c
+++ b/src/process-window.c
@@ -415,6 +415,10 @@ xtm_process_window_key_pressed (XtmProcessWindow *window, GdkEventKey *event)
if (event->keyval == GDK_KEY_Escape ||
(event->keyval == GDK_KEY_q && (event->state & GDK_CONTROL_MASK))) {
+ if (gtk_main_level () > 0) {
+ xtm_settings_save_settings(window->settings);
+ gtk_main_quit ();
+ }
ret = TRUE;
}
else if (event->keyval == GDK_KEY_f && (event->state & GDK_CONTROL_MASK)) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list