From 2373ba632fda25af978b0b7bae52cd514e194fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 19 Jun 2021 23:53:55 +0200 Subject: 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. --- src/event.c | 4 ---- src/taskbar.c | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3