[metacity] keybindings: use meta_error_trap_pop in grab_keyboard



commit 400e1fd2930f76cb49457ce213c52c6a691bb17b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Jul 21 17:48:55 2017 +0300

    keybindings: use meta_error_trap_pop in grab_keyboard
    
    We are not using return value from meta_error_trap_pop_with_return
    if keyboard grab has failed, replace it with meta_error_trap_pop.

 src/core/keybindings.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 6a1d144..564abca 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -890,7 +890,7 @@ grab_keyboard (MetaDisplay *display,
 
   if (grab_status != GrabSuccess)
     {
-      meta_error_trap_pop_with_return (display);
+      meta_error_trap_pop (display);
       meta_topic (META_DEBUG_KEYBINDINGS,
                   "XGrabKeyboard() returned failure status %s time %u\n",
                   grab_status_to_string (grab_status),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]