diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-19 23:53:55 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-19 23:53:55 +0200 |
commit | 2373ba632fda25af978b0b7bae52cd514e194fce (patch) | |
tree | 708193adbbd837f5ab8e9ba903f3a6c8c047ed05 /src | |
parent | bc236b7fbc4a2603dacb682926df64e2a70c48f1 (diff) | |
download | jwm-2373ba632fda25af978b0b7bae52cd514e194fce.tar.gz |
Do not raise window on next/prev
Turns out that this was the default behavior and that my previous
commit (trying to enable this behavior) was unnecessary. Anyway,
I don't like it, so I'm disabling it now.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.c | 4 | ||||
-rw-r--r-- | src/taskbar.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/event.c b/src/event.c index ec0d6b5..222764f 100644 --- a/src/event.c +++ b/src/event.c @@ -362,16 +362,12 @@ void HandleKeyPress(const XKeyEvent *event) { break; case KEY_NEXT: FocusNext(); - np = GetActiveClient(); - if (np != NULL) RaiseClient(np); break; case KEY_NEXT_STACKED: FocusNextStackedCircular(); break; case KEY_PREV: FocusPrevious(); - np = GetActiveClient(); - if (np != NULL) RaiseClient(np); break; case KEY_PREV_STACKED: FocusPreviousStackedCircular(); diff --git a/src/taskbar.c b/src/taskbar.c index f0a72fe..8eb45d3 100644 --- a/src/taskbar.c +++ b/src/taskbar.c @@ -604,7 +604,7 @@ void FocusNext() { } if(tp) { - RestoreClient(tp->client, 1); + RestoreClient(tp->client, 0); FocusClient(tp->client); } @@ -641,7 +641,7 @@ void FocusPrevious() { } if(tp) { - RestoreClient(tp->client, 1); + RestoreClient(tp->client, 0); FocusClient(tp->client); } |