mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1077] [MERGED] fix(wm): focus window on Show when there is only 1 window
#1192
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1077
Author: @alex-ds13
Created: 10/21/2024
Status: ✅ Merged
Merged: 10/29/2024
Merged by: @LGUG2Z
Base:
master← Head:fix/focus-window-on-show📝 Commits (1)
76af1cffix(wm): focus window onShowwhen there is only 1 window📊 Changes
1 file changed (+15 additions, -0 deletions)
View changed files
📝
komorebi/src/process_event.rs(+15 -0)📄 Description
This commit makes sure we refocus the window on
Showevent when it is the only window on the workspace. This is needed because some windows some times send theFocusChangeevent before theShowevent and on the first event we will be focusing the desktop window to unfocus any previous window from other workspace because the workspace will still be empty. So after adding the window we need to focus it again.This fixes an issue brought up on discord by @amnweb here
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.