2014-12-11 09:35:40 -05:00
|
|
|
/**
|
|
|
|
* ShellActionMode:
|
|
|
|
* @SHELL_ACTION_MODE_NONE: block action
|
|
|
|
* @SHELL_ACTION_MODE_NORMAL: allow action when in window mode,
|
|
|
|
* e.g. when the focus is in an application window
|
|
|
|
* @SHELL_ACTION_MODE_OVERVIEW: allow action while the overview
|
|
|
|
* is active
|
|
|
|
* @SHELL_ACTION_MODE_LOCK_SCREEN: allow action when the screen
|
|
|
|
* is locked, e.g. when the screen shield is shown
|
|
|
|
* @SHELL_ACTION_MODE_UNLOCK_SCREEN: allow action in the unlock
|
|
|
|
* dialog
|
|
|
|
* @SHELL_ACTION_MODE_LOGIN_SCREEN: allow action in the login screen
|
|
|
|
* @SHELL_ACTION_MODE_SYSTEM_MODAL: allow action when a system modal
|
2020-08-19 05:26:11 -04:00
|
|
|
* dialog (e.g. authentication or session dialogs) is open
|
2014-12-11 09:35:40 -05:00
|
|
|
* @SHELL_ACTION_MODE_LOOKING_GLASS: allow action in looking glass
|
2015-02-23 14:07:04 -05:00
|
|
|
* @SHELL_ACTION_MODE_POPUP: allow action while a shell menu is open
|
2014-12-11 09:35:40 -05:00
|
|
|
* @SHELL_ACTION_MODE_ALL: always allow action
|
|
|
|
*
|
|
|
|
* Controls in which GNOME Shell states an action (like keybindings and gestures)
|
|
|
|
* should be handled.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
SHELL_ACTION_MODE_NONE = 0,
|
|
|
|
SHELL_ACTION_MODE_NORMAL = 1 << 0,
|
|
|
|
SHELL_ACTION_MODE_OVERVIEW = 1 << 1,
|
|
|
|
SHELL_ACTION_MODE_LOCK_SCREEN = 1 << 2,
|
|
|
|
SHELL_ACTION_MODE_UNLOCK_SCREEN = 1 << 3,
|
|
|
|
SHELL_ACTION_MODE_LOGIN_SCREEN = 1 << 4,
|
2015-02-25 19:05:29 -05:00
|
|
|
SHELL_ACTION_MODE_SYSTEM_MODAL = 1 << 5,
|
|
|
|
SHELL_ACTION_MODE_LOOKING_GLASS = 1 << 6,
|
|
|
|
SHELL_ACTION_MODE_POPUP = 1 << 7,
|
2014-12-11 09:35:40 -05:00
|
|
|
|
|
|
|
SHELL_ACTION_MODE_ALL = ~0,
|
|
|
|
} ShellActionMode;
|
|
|
|
|