aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-09 20:57:46 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-09 20:57:46 +0200
commit2a0edf6b012c6bc553118767cd6c7354caf79003 (patch)
tree06f5a8b11a88e9dc882c6b4330ff79cddcab8d2b
parente56ca0d6aaeb97e200a26d74a62a2858162f14fe (diff)
downloadjwm-2a0edf6b012c6bc553118767cd6c7354caf79003.tar.gz
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.
-rw-r--r--src/event.c2
1 files changed, 1 insertions, 1 deletions
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]) {