-
Notifications
You must be signed in to change notification settings - Fork 43
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
Bugfix decorated window on windows - clickable components inside title area should work now #731
base: main
Are you sure you want to change the base?
Conversation
…e area should work now
Hi, I ported & tested the change on macOS and it doesn't seem to make any difference with the previous behaviour. Dragging the title bar sometimes works, and sometimes it doesn't. I can't figure out what the reason is... there doesn't seem to be much of a pattern. I also tried mucking around a bit with the code to see if I could get it to work, but it still has the same issue. This needs some more investigation... |
Can you tell me if the click behavior on the dropdown menu is the same as for me (before and after)? If so, can you reproduce the improvement in this case? Actually I can't see any issues with drag&drop, it behaves as it should for me when I play around for a few minutes. |
@MFlisar the dropdown in the standalone sample works fine for me on the main branch if that's what you're asking |
Sorry for being so detailed, but does that mean that the popup always opens immediately without the need to move the mouse after the click for one pixel? Because that is the issue this pull requests solves for me on windows 11, latest release version... |
To be clear, #424 is only happening on Windows, not on Mac nor Linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully on Windows 11
Signed-off-by: Ivan Morgillo <[email protected]>
Idea
Place a background composable behind the title content that handles all windows draggable header related stuff. This way, everything inside the title bar is placed on top of the composable that forwards the events to the draggable header.
Issues this solves
when clicking a dropdown menu in the title bar, the popup did not pop up until the next mouse move => fixed
TODO
Box
around the title content, apply the modifier to it instead of the title bar composable and place the title bar composable inside the box with a simplefillMaxSize
Modifier - I'm pretty sure it does not change anything, still, it needs to be tested on mac and linux as well oncecustomTitleBarMouseEventHandler
as well - it may be necessary to use the same fix there? I don't know, I don't have a mac and I don't know if the mac has the same issuescustomTitleBarMouseEventHandler
as is (also because I don't know how it is used on mac) - it may be possible to simplifiy it like following as there is no need to try to detect if we are over a user control or not anymore because of the layerig of the background composable and the content.Fix #424