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

apprt/gtk: set mouse shape on GL area widget instead of overlay #1969

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

vancluever
Copy link
Collaborator

In b7699b9, mouse shape functionality was moved from the GL area widget to the overlay that was newly created for the URL target information that was included as part of #1928. This seems to have the side effect of causing the pointer shape to revert to the default shape (here, the basic arrow pointer) when dragging the mouse during selections.

This moves it back to the GL area, which seems to correct this. It doesn't seem to need to be added to both - everything seems to function correctly when a link is moused over, and then selection is made down to the overlay area (not that this scenario is very likely, though).

Current

2024-07-18.08-51-14.mp4

Fixed

2024-07-18.08-52-15.mp4

In b7699b9, mouse shape functionality was moved from the GL area widget
to the overlay that was newly created for the URL target information
that was included as part of #1928. This seems to have the side effect
of causing the pointer shape to revert to the default shape (here, the
basic arrow pointer) when dragging the mouse during selections.

This moves it back to the GL area, which seems to correct this. It
doesn't seem to need to be added to both - everything seems to function
correctly when a link is moused over, and then selection is made down to
the overlay area (not that this scenario is very likely, though).
@mitchellh
Copy link
Contributor

Thanks. It wasn't clear to me what was correct... this is a good argument.

@mitchellh mitchellh merged commit bf24504 into ghostty-org:main Jul 18, 2024
15 of 18 checks passed
@mitchellh mitchellh deleted the gtk-mouse-shape-drag branch July 18, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants