diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-05 22:56:10 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-05 22:56:10 +0000 |
| commit | d6f9bc953ac7cd29f69563c96b6c8991fed8f6d8 (patch) | |
| tree | 051f0c06e6168bc90a5556f37c34144cd3d47689 /openbox/focus.c | |
| parent | ec4e24a42269b44c9585176943f76310495536ea (diff) | |
allow specifying that some focus events should be ignored for the focus order list
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 39894046..4ff85c5d 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -18,6 +18,7 @@ GList **focus_order = NULL; /* these lists are created when screen_startup Window focus_backup = None; gboolean focus_new = TRUE; gboolean focus_follow = TRUE; +int focus_ignore_in = 0; static void parse_assign(char *name, ParseToken *value) { @@ -99,7 +100,10 @@ void focus_set_client(Client *client) focus_client = client; /* move to the top of the list */ - if (client != NULL) { + if (focus_ignore_in) { + g_assert(focus_ignore_in > 0); + --focus_ignore_in; + } else if (client != NULL) { desktop = client->desktop; if (desktop == DESKTOP_ALL) desktop = screen_desktop; focus_order[desktop] = g_list_remove(focus_order[desktop], client); |
