[ShellGlobal] add SHELL_STAGE_INPUT_MODE_FOCUSED

Add SHELL_STAGE_INPUT_MODE_FOCUSED, to move the keyboard focus to the
shell without grabbing the keyboard or mouse, and make
stage_input_mode into a GObject property so that (among other things),
callers can tell when MODE_FOCUSED reverts back to MODE_NORMAL.

https://bugzilla.gnome.org/show_bug.cgi?id=623429
This commit is contained in:
Dan Winship
2010-07-02 13:36:13 -04:00
parent 6259513b0f
commit adbf3b1c37
2 changed files with 68 additions and 1 deletions

View File

@ -51,6 +51,7 @@ void shell_global_grab_dbus_service (ShellGlobal *global);
typedef enum {
SHELL_STAGE_INPUT_MODE_NONREACTIVE,
SHELL_STAGE_INPUT_MODE_NORMAL,
SHELL_STAGE_INPUT_MODE_FOCUSED,
SHELL_STAGE_INPUT_MODE_FULLSCREEN
} ShellStageInputMode;