diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2008-11-05 18:48:10 +0100 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2008-11-05 19:34:21 +0100 |
| commit | 59eb52b7c6ccbe83742e5eb8b40b5e32bb6600cc (patch) | |
| tree | bd50c6641da4332060078e4ca58c97f92a1a853a | |
| parent | e3134210d820340ef63bb5c21c9a56856147f0a9 (diff) | |
Don't move windows to current desktop on net_active_window if the event didn't come from the user.
Instead, just activate the flashy thinger.
| -rw-r--r-- | openbox/client.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c index d6321949..39a03468 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -3904,12 +3904,15 @@ static void client_present(ObClient *self, gboolean here, gboolean raise, client_focus(self); } -/* this function exists to map to the client_activate message in the ewmh, - the user arg is unused because nobody uses it correctly anyway. */ +/* this function exists to map to the net_active_window message in the ewmh */ void client_activate(ObClient *self, gboolean here, gboolean raise, gboolean unshade, gboolean user) { - client_present(self, here, raise, unshade); + if (user || (self->desktop == DESKTOP_ALL || + self->desktop == screen_desktop)) + client_present(self, here, raise, unshade); + else + client_hilite(self, TRUE); } static void client_bring_windows_recursive(ObClient *self, |
