From 567509200c2e9d3148d5a799d88fb01428818a5c Mon Sep 17 00:00:00 2001 From: Bert Gijsbers Date: Thu, 28 Nov 2024 19:38:26 +0100 Subject: [PATCH] Revert "When undoing an arrange or showing the desktop, focus the last focused window instead of the topmost window." for issue #788. This reverts commit 2abbe86ebf1668d7c0d02d919c41e235cafb249b. --- src/wmmgr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wmmgr.cc b/src/wmmgr.cc index fbc6048c1..24b1ffc71 100644 --- a/src/wmmgr.cc +++ b/src/wmmgr.cc @@ -3590,7 +3590,7 @@ void YWindowManager::undoArrange() { delete [] fArrangeInfo; fArrangeInfo = nullptr; fArrangeCount = 0; unlockFocus(); - focusLastWindow(); + focusTopWindow(); } setShowingDesktop(false); }