]> Dogcows Code - chaz/openbox/commitdiff
use keyrelease to fire menu actions not key press
authorDana Jansens <danakj@orodu.net>
Thu, 19 Jul 2007 18:24:30 +0000 (14:24 -0400)
committerDana Jansens <danakj@orodu.net>
Thu, 19 Jul 2007 18:24:30 +0000 (14:24 -0400)
when keypress is used, the keyrelease gets sent to whatever window is focused.  if it's a stupid program - like most any program - it will update its user_time, preventing the new window from being focused

openbox/event.c

index eb2646b5d17694d187bee52ce1adafb9edba2e30..3b6d1743996282734dbfcae059fb9c4cd3eeb95d 100644 (file)
@@ -1778,7 +1778,7 @@ static gboolean event_handle_menu(XEvent *ev)
                 f->child == e->frame)
                 menu_frame_select(e->frame, e, FALSE);
         break;
                 f->child == e->frame)
                 menu_frame_select(e->frame, e, FALSE);
         break;
-    case KeyPress:
+    case KeyRelease:
         ret = event_handle_menu_keyboard(ev);
         break;
     }
         ret = event_handle_menu_keyboard(ev);
         break;
     }
This page took 0.023293 seconds and 4 git commands to generate.