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

Fix some cases where the cursor doesn't update #2342

Merged
merged 1 commit into from
Jul 23, 2018

Conversation

RyanDwyer
Copy link
Member

cursor_set_image only uploads the named image if it doesn't match the previous named image. This means when setting the cursor image to a surface as given by a client (ie. not named), we have to clear the cursor->image property.

To test, open a window that sets a different cursor (eg. open a terminal and see the I-beam/text cursor) then switch to a new workspace. The cursor would not update, but now it changes to the regular pointer.

cursor_set_image only uploads the named image if it doesn't match the
previous named image. This means when setting the cursor image to a
surface as given by a client, we have to clear the currently stored
image.
@emersion emersion merged commit 224ade1 into swaywm:master Jul 23, 2018
@emersion
Copy link
Member

Thanks!

@RyanDwyer RyanDwyer deleted the update-cursor branch July 23, 2018 23:35
@nearffxx nearffxx mentioned this pull request Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants