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

Cursor keeps the resize icon when moving past window edge #390

Closed
git-f0x opened this issue Mar 27, 2024 · 8 comments
Closed

Cursor keeps the resize icon when moving past window edge #390

git-f0x opened this issue Mar 27, 2024 · 8 comments

Comments

@git-f0x
Copy link
Contributor

git-f0x commented Mar 27, 2024

When the cursor is moved over a window edge, and its resize icon is shown, that icon is kept everywhere outside the window, instead of reverting to its default icon when the window edge is passed.
The cursor reverts to its default icon when it touches a panel, returns to the window or is over another window.
This can make resizing with the mouse a bit difficult.
Probably caused by #380.

@Drakulix
Copy link
Member

Drakulix commented Mar 28, 2024

Which commit and app does this happen with? Can't reproduce with floating/sticky, client-side or server-side decorated, wayland or xwayland apps.

@git-f0x
Copy link
Contributor Author

git-f0x commented Mar 28, 2024

Happens on the latest available daf669e and in all apps. When the cursor changes to its resize icon, it keeps it everywhere outside the window, unless it touches a panel or different window.
screenshot-2024-03-28-12-00-09
screenshot-2024-03-28-12-02-13

@Drakulix
Copy link
Member

Can reproduce now, this needs cosmic-bg running, which wasn't the case in my debugging setup. (Fascinating..)

@git-f0x
Copy link
Contributor Author

git-f0x commented Mar 28, 2024

Weird... But indeed interesting.

@Drakulix
Copy link
Member

Weird...

Currently hypothesis is, that the cosmic-bg surface simply doesn't set any pointer and smithay/cosmic-comp doesn't reset correctly when switching surfaces for focus (instead of switching to an empty focus).

@git-f0x
Copy link
Contributor Author

git-f0x commented Mar 28, 2024

I've also noticed (present for a while) that the cursor occasionally gets stuck using an icon (like the hand icon sometimes when using Firefox). But does switch back (when doing something, not sure what) usually.
Might be related, but was present long before recent commits.

@Drakulix
Copy link
Member

Drakulix commented Mar 28, 2024

Hypothesis proven, seems to be fixed by using a patched smithay dependencies with Smithay/smithay#1375. I'll update smithay once this is merged and then close this issue.

@Drakulix
Copy link
Member

Drakulix commented Apr 2, 2024

Fixed by e287af1

@Drakulix Drakulix closed this as completed Apr 2, 2024
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

No branches or pull requests

2 participants