#Komorebi steals control of windows in a separate Virtual Desktop

1 messages · Page 1 of 1 (latest)

fossil cobalt
#

I use virtual desktops as a way to separate what I want komorebi to control and what I don't want it to control. For example, I have my "Main" desktop that I can do things like have a full-screen browser open with a couple other miscellaneous apps floating around, or I can play video games. Then I have my "programming" desktop that I turn on komorebi when I am working and let it manage my work environment, which usually involves something like Emacs, Wezterm, Work Slack, and Browser.

However, occasionally when I switch from "Programming" to "Main" and then back to "Programming" komorebi will take control of one or more of my windows on my "Main" desktop. Usually, firefox, discord, or spotify. I doubt the app matters, these are just the ones I have open and interact with the most often.

I am curious if komorebi + virtual desktops is undefined behavior of if I've run into some kind of bug.

quaint patio
#

https://github.com/LGUG2Z/komorebi/blob/c06d9afa3bbc144cd1c296cbea064d0562b4ae1d/komorebi/src/process_event.rs#L108-L118

I suppose this is technically a bug, but depending on how fast you switch between them, an event might be emitted for a window on your Main desktop by the time you have already switched back to your Programming desktop, and vice versa

GitHub

A tiling window manager for Windows 🍉. Contribute to LGUG2Z/komorebi development by creating an account on GitHub.

#

The safest thing to do here is probably to hit the komorebic pause hotkey when you're switching or not on the Programming VD

rich prawn
#

@fossil cobalt I think the best thing for you is to not use virtual desktops at all but instead create a floating workspace on komorebi which will work as your "main" workspace, if you don't set a layout to a workspace on komorebi's config.json, then that workspace will not tile anything and instead behave as a normal floating space. But komorebi will work just fine this way and will properly hide/show windows when swapping between your "main" floating workspace and your "programming" tiled workspace. That is what I do! I even have more than one floating workspace so that I can separate everything I want and komorebi works great this way. I really like the way it handles workspaces, it feels a lot better than virtual desktops to me!

fossil cobalt
#

Thanks for the info @quaint patio 🙇

#

@rich prawn I'm interested in trying out that workflow, but haven't had the time to configure komorebi and to find keybindings for switching workspaces that feel just as natural as win + ctrl + left or right.

rich prawn
#

Why not ctrl + alt + left/right? Since I use multiple workspaces and I know what is on each one I use alt + 'number' like alt + 1 for "main", alt + 2 for "programming".

fossil cobalt
#

ctl and alt based keybindings are reserved for emacs 😅