diff options
| author | Dana Jansens <danakj@orodu.net> | 2012-09-30 22:41:34 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2012-10-06 21:56:56 -0400 |
| commit | af01da31502b20300222213e693457320e4158e4 (patch) | |
| tree | 66485cb46069a231fe1f18674a850218d967429a /openbox/actions.h | |
| parent | 6eb740cf119b14903afa3028e108dd98c57ff926 (diff) | |
Allow windows created by execute actions to steal focus if the user isn't interacting with another window (Fix bug 5419).
When the execute action was run, we would say that the user had used the focused
at that time. Then when a new window popped up, we'd think the user was busy in
the current window and prevent the new one from steal focus.
Now the execute action does not update the "user interacted with the focused
window" timestamp anymore. So, if they aren't currently typing in some window
when they trigger an execute action, and the window appears, it will steal
focus.
Diffstat (limited to 'openbox/actions.h')
| -rw-r--r-- | openbox/actions.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbox/actions.h b/openbox/actions.h index e03bc577..f413ad82 100644 --- a/openbox/actions.h +++ b/openbox/actions.h @@ -82,6 +82,8 @@ gboolean actions_register(const gchar *name, gboolean actions_set_shutdown(const gchar *name, ObActionsShutdownFunc shutdown); +gboolean actions_set_modifies_focused_window(const gchar *name, + gboolean modifies); ObActionsAct* actions_parse(xmlNodePtr node); ObActionsAct* actions_parse_string(const gchar *name); |
