diff options
author | Elijah Newren <newren@gmail.com> | 2005-02-22 02:11:25 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2005-02-22 02:11:25 +0000 |
commit | 612507260a550ff2381bfcbbe32f9bab62650fd9 (patch) | |
tree | de776ecb45e5d1a64c6bce4109a089bb65da5ab2 /src/display.h | |
parent | ad99427b49e80db15413aaa4ce65c540aff565b4 (diff) | |
download | metacity-612507260a550ff2381bfcbbe32f9bab62650fd9.tar.gz |
Handle keynav vs. mousenav in mouse and sloppy focus modes. Fixes #167545.
2005-02-21 Elijah Newren <newren@gmail.com>
Handle keynav vs. mousenav in mouse and sloppy focus modes. Fixes
#167545.
* doc/how-to-get-focus-right.txt: Update due to this new method
for handling keynav vs. mousenav, plus various other updates that
I previously forgot.
* src/display.h: (struct _MetaDisplay): add a mouse_mode boolean
* src/display.c: (meta_display_open): initialize mouse_mode to
true, (event_callback): have EnterNotify and LeaveNotify events
set mouse_mode to true when focusing a window
* src/keybindings.c: (process_tab_grab): set mouse_mode to false
when using alt-tab/alt-esc, (do_choose_window): likewise,
(do_handle_move_to_workspace): set mouse_mode to false on
move-window-to-workspace-<n> keybindings
* src/window.c (idle_calc_showing): if we're in keynav mode while
using sloppy or mouse focus, use metacity_sentinel to avoid
EnterNotify events being generated from events other than mouse
movement.
* src/workspace.c (meta_workspace_activate_with_focus): add a
FIXME in a potentially duplicate section of code,
(meta_workspace_focus_default_window): use the same focus choice
as click-to-focus if in keynav mode.
Diffstat (limited to 'src/display.h')
-rw-r--r-- | src/display.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/display.h b/src/display.h index df309efb..1136c72d 100644 --- a/src/display.h +++ b/src/display.h @@ -204,6 +204,11 @@ struct _MetaDisplay /* last user interaction time in any app */ Time last_user_time; + /* whether we're using mousenav (only relevant for sloppy&mouse focus modes; + * !mouse_mode means "keynav mode") + */ + guint mouse_mode : 1; + guint static_gravity_works : 1; /*< private-ish >*/ |