From 2a0edf6b012c6bc553118767cd6c7354caf79003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 9 Jun 2021 20:57:46 +0200 Subject: Change desktop on ATOM_NET_ACTIVE_WINDOW message This fixes ROX Files when used in its "Unique Windows" mode. Otherwise, double-clicking on a folder wouldn't do anything if the folder was already open in a window on another desktop. This may cause unexpected desktop switching. I'm not sure how often programs issue activation messages. Perhaps it would be good if the current desktop number was displayed in the center of the screen, similar to the message when resizing/moving windows. --- src/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/event.c b/src/event.c index 0b12b82..ec0d6b5 100644 --- a/src/event.c +++ b/src/event.c @@ -696,8 +696,8 @@ void HandleClientMessage(const XClientMessageEvent *event) { } } else if(event->message_type == atoms[ATOM_NET_ACTIVE_WINDOW]) { - RestoreClient(np, 1); + ChangeDesktop(np->state.desktop); FocusClient(np); } else if(event->message_type == atoms[ATOM_NET_WM_DESKTOP]) { -- cgit v1.2.3