Files
gtk3/gdk
Alexander Larsson ddade66496 broadway: use 'click-to-focus' approach instead of 'focus-follows-mouse'
The broadway backend would move the focus from one window to another based on
where the mouse was (i.e. 'focus-follows-mouse' approach). Handling the focus
this wait didn't play well with widgets which rely on focus-in-event and
focus-out-event, like the GtkEntry when using a completion popup window, see
e.g:
  https://bugzilla.gnome.org/show_bug.cgi?id=708984

So instead, setup broadway to require a click in a window to move the focus
(i.e. 'click-to-focus' approach):

 * The implicit GDK_FOCUS_CHANGE events that were generated upon reception of
   BROADWAY_EVENT_ENTER or BROADWAY_EVENT_LEAVE are removed.

 * The broadway daemon will now keep track of which is the focused window

 * Whenever the daemon detects an incoming BROADWAY_EVENT_BUTTON_PRESS, it will
   trigger the focused window switch, which sends a new BROADWAY_EVENT_FOCUS to
   the client, specifying which windows holds the focus.

 * Upon reception of a BROADWAY_EVENT_FOCUS, the client will generate a new
   GDK_FOCUS_CHANGE.

 * gdk_broadway_window_focus() was also implemented, which now requests the
   focus to the broadway server using a new BROADWAY_REQUEST_FOCUS_WINDOW.

This is based on an initial patch from Aleksander Morgado <aleksander@lanedo.com>.
2013-11-12 12:03:50 +01:00
..
2013-10-09 14:19:54 -04:00
2013-02-25 10:54:32 +01:00
2013-09-24 17:43:44 +02:00
2013-08-09 20:24:44 -04:00
2013-05-09 12:03:09 -04:00
2013-09-17 01:13:03 -04:00
2013-10-23 13:31:18 +02:00
2013-02-25 10:57:34 +01:00
2013-04-19 20:11:39 -04:00
2013-04-19 20:11:38 -04:00
2013-04-19 20:11:38 -04:00
2013-05-23 20:53:30 +02:00
2013-08-28 10:33:57 -04:00
2013-07-17 17:52:19 -04:00