-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix drawinTitleBar requirement #10
base: master
Are you sure you want to change the base?
Conversation
Thanks for your contribution! In general the code looks good to me, but I haven't had the time to test the changes yet. Can you please also update the manual regarding the |
Also, if you feel like it and you have a way of testing it, you could check out the old MinTrayR / etc. extensions and see if they work with |
I updated the readme about the I also checked MinTray Reanimated on Thunderbird 60, it has the same problem where the close button just closes the entire program. A workaround is to install the Minimize on Close extension which uses javascript to minimize instead of close, which will be intercepted by TBTray. |
A small issue with the Minimize on Close extension is that, since it replaces the close function with the minimize function, the exit menu option in the tray will not work; Thunderbird has to be exited using the file menu. A fix for this is to use |
Thanks for your detailed research and updating the readme. There's nothing keeping this from being merged apart from still having to test it, which I will do during the weekend. |
Any updates on this? Also, unrelated but can someone add the docs for compilation? |
The docs for compilation are: Open the solution in Visual Studio and compile it. It couldn't be any simpler. |
Yeah I know I actually figured that out minutes after posting my comment. But if someone wasn't familiar with visual studio and how to work with it, then it'll not be as simple as you put it. Anyways, any updates on the pr? I compiled it myself and everything works fine on my end, not sure if your tests are all passing though. |
I highlighted a regression in the code review comments but so far it was not addressed. I won't merge a PR that breaks the code for the only configuration I use (drawInTitleBar=false) and wrote this tool for. |
Fixes #6
Hooks
WM_SIZE
instead ofWM_NCLBUTTONDOWN
to determine if window has been minimized, allowing support for Thunderbird's client area buttons whendrawinTitleBar
is set totrue
.Unfortunately, I haven't found a way to hook the client area close button, meaning the close button will cause Thunderbird to not minimize to tray while
drawinTitleBar
istrue
.The
WH_CALLWNDPROC
hook has the ability to determine when the window is closing, but cannot prevent the close. TheWM_NCLBUTTONDOWN
hook doesn't work because the close button is (as far as I can tell) not in the non-client area whendrawinTitleBar
istrue
.