-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ Focus Stealing ] HashTWM handling windows stealing focus #11
Comments
I certainly agree that you shouldn't have to be fighting against windows that are stealing focus. I'll look into it and see what I can do! |
Hi there, So far I'm unable to reproduce the focus stealing... I wrote an example to open a MessageBox to try and steal focus, if I run this from the command-line it DOES take focus, but this is to be expected as I'm invoking it directly. However if I change this utility to wait 10 seconds before opening the MessageBox, then it does NOT steal focus, even if I add a flag telling it to set itself as the foreground window. I tried out PuTTY as well by trying to open a connection to a non-existing address, if I switch to another window and wait for it to timeout it still does not steal focus while opening its error dialog. I have however noticed that the usual WINDOWACTIVATED hook does not seem to get called at all on newer versions of Windows, and have added the RUDEAPPACTIVATED hook there which does get called. I don't expect this to help in this case however. If you're able to reproduce the focus stealing through some code then that would be the best chance for me to be able to fix it, otherwise I will keep investigating. For what it's worth the examples I tried were:
followed by:
|
This should be fixed as of the most recent commit (assuming it is the same issue as #30), have pushed a new binary here https://github.com/ZaneA/HashTWM/blob/master/hashtwm.exe (although I suspect you would have well moved on by now :D) |
Unbelievable! Almost exactly 10 years! Yes, my workflow is different these days but what a fond blast from the past! Congratulations on fixing this! 🥳 |
It seems applications may steal focus for various reasons, leaving
HashTWM
almost unusable for any reasonable length of time.With
Windows 7
, the various tweaks/fixes to prevent windows from stealing focus have been removed and/or unchangeable.I've noticed this happening a lot with
KiTTY
(PuTTY
) as well as withOutlook 2010
, as example applications.Some applications have fine-grained controls in handling how pop-ups and window focus affect the user. Unfortunately, it appears
HashTWM
is fleshing out the bugs with the various applications' settings or there is a bug withinHashTWM
.Would a command line argument to ignore any and all applications from stealing focus be something reasonable to implement? I'd prefer to only focus on the window I've highlighted with mod+j or mod+k.
Thank you.
The text was updated successfully, but these errors were encountered: