Skip to content
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

Dragging on the TitleBar to move the window does not always work #368

Open
hvisser opened this issue Apr 26, 2024 · 5 comments
Open

Dragging on the TitleBar to move the window does not always work #368

hvisser opened this issue Apr 26, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@hvisser
Copy link

hvisser commented Apr 26, 2024

Dragging the TitleBar doesn't always work, at least on macOS with jbr-17 and jbr-21. When I use a normal Window the window can be dragged normally. Since TitleBar is delegating the hit test to the JetBrains runtime, this might also be a runtime bug.

titlebar.mov
@rock3r
Copy link
Collaborator

rock3r commented Apr 27, 2024

Hugo, can you confirm this isn't by any chance happening when clicking clickable/focusable components? This doesn't seem to be the case in the video, but just to be sure.

@rock3r rock3r added the bug Something isn't working label Apr 27, 2024
@hvisser
Copy link
Author

hvisser commented Apr 27, 2024

I've also tested this with an completely empty window, so it doesn't seem to be related to focus I think.

@rock3r
Copy link
Collaborator

rock3r commented Apr 27, 2024

Thanks :) @devkanro have you ever seen this?

@devkanro
Copy link
Collaborator

This is a known issue, and I have no idea currently, will look into this, but I think it is a JBR issue.

@hvisser
Copy link
Author

hvisser commented Apr 29, 2024

The pointer is handled here https://github.com/JetBrains/jewel/blob/main/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.Windows.kt#L43 and it looks OK, but maybe the actual pointer event does not always get delivered to the window decoration correctly?

FWIW I assume that Intellij and other products do something similar but using Swing API's and I'm not observing that issue with those products.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants