BurntSushi / wingo

A fully-featured window manager written in Go.
Do What The F*ck You Want To Public License
1k stars 90 forks source link

Focus stealing prevention #1

Open BurntSushi opened 12 years ago

BurntSushi commented 12 years ago

Focus stealing prevention seems to be common place among industrial strength window managers, but it does not exist in Wingo.

From my understanding, focus stealing prevention works by detecting unfriendly X clients that try to focus their client against the user's wishes. How do I detect this?

Moreover, how necessary is focus stealing prevention? Maybe clients are more well behaved in this day and age...

rmt commented 10 years ago

I think the most common use-case for this is if a currently unfocused window pops up a new window (eg. chat window), the window shouldn't be focused automatically.. This is especially true when you're in the middle of typing. Similarly, if it pops up right under the mouse in focus-follows-mouse mode, it also shouldn't gain focus.