mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
Cannot close a focused floating window. #233
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?
Originally created by @Keshav13142 on GitHub (Aug 1, 2023).
Describe the bug
If I try to close a floating window using the wkhd shortcut I assigned to
komorebic close, the window behind it gets closed even though the focus it on the floating windowTo Reproduce
Steps to reproduce the behavior:
komorebic closeExpected behavior
Close the floating window instead of the one behind it.
Screenshots and Videos

Operating System
OS Name: Microsoft Windows 10 Home Single Language
OS Version: 10.0.19045 N/A Build 19045
komorebic checkOutputAdditional context
I'm also unable to close the floating window even though that is the only open window that is focused in that workspace.
The following are my configs
@LGUG2Z commented on GitHub (Aug 1, 2023):
komorebiccommands generally only operate on applications managed by the window manager, andEverythingfails the window management validity test (since it's not a windowed application) meaning it gets ignored, therefore this is not a bug but the intended behaviour, becausekomorebishould only be able to operate on windows it manages.I'd be open to a accepting PR if somebody felt strongly enough about this to add an additional command like
close-any-windowwhich explicitly documents that the command can operate on windows not managed bykomorebi.@Keshav13142 commented on GitHub (Aug 7, 2023):
Oh okay, makes sense!. I misunderstood that
Everythingwas a floating window managed byKomorebi. I didn't know that it failed the validity test.And yes,
close-any-windowsounds like a good feature, however I'm also not sure how many people have encountered this problem.Thanks for the response.
@urob commented on GitHub (Nov 30, 2023):
For anyone looking for a workaround, it's pretty straightforward to set up hotkeys that work for all windows (tiled, floating, full screen, monocle, or unmanaged) using AHK: