GNOME Bugzilla – Bug 642426
Don't pass handled key events to GTK+
Last modified: 2011-02-17 16:41:15 UTC
If we handle a key event then passing it to GTK+ as well can only cause confusion. Normally GTK+ would do nothing with a key event for some window it doesn't know about, but plugins might be doing more things with the GTK+ event queue.
Created attachment 180952 [details] [review] Don't pass handled key events to GTK+
Comment on attachment 180952 [details] [review] Don't pass handled key events to GTK+ >- bypass_compositor = meta_display_process_key_event (display, window, event); >+ filter_out_event = bypass_compositor = meta_display_process_key_event (display, window, event); filter_out_event gets set from multiple places. Although there's currently no place where something else could be setting it TRUE and then this would set it FALSE, it seems like that could potentially happen in the future and so it might be safer to say if (meta_display_process_key_event (display, window, event)) bypass_compositor = filter_out_event = TRUE; Your call.
Did the: if (meta_display_process_key_event (display, window, event)) bypass_compositor = filter_out_event = TRUE; thing. As you say it's slightly safer than risking setting them to FALSE and avoids a very long line too. Attachment 180952 [details] pushed as e7d336a - Don't pass handled key events to GTK+