From: Mikael Magnusson Date: Wed, 5 Nov 2008 17:48:10 +0000 (+0100) Subject: Don't move windows to current desktop on net_active_window if the event didn't come... X-Git-Tag: backport~135 X-Git-Url: http://git.openbox.org/?p=dana%2Fopenbox.git;a=commitdiff_plain;h=59eb52b7c6ccbe83742e5eb8b40b5e32bb6600cc 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. --- diff --git a/openbox/client.c b/openbox/client.c index d632194..39a0346 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,