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

Fixing default Cursor for x11 #368

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jusax23
Copy link
Contributor

@jusax23 jusax23 commented Apr 14, 2023

When the default System cursor was changed XC_left_ptr is not the default Cursor.

  • Added XUndefineCursor to libx11.rs
  • Changed to calling XUndefineCursor, when calling set_cursor with CursorIcon::Default

IohannRabeson and others added 5 commits March 19, 2023 11:11
Library shouldn't print anything when things are working correctly.
when XC_left_ptr is not the default System pointer.
- Added XUndefineCursor to libx11.rs
- Changed to calling XUndefineCursor, when calling set_cursor with CursorIcon::Default
}),
};
(libx11.XDefineCursor)(display, window, cursor);
if cursor == Some(CursorIcon::Default) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the problem, but I do not really like the extra branching and a special case for CursorIcon::Default, can't really propose anything better right now tho, will take a closer look into it a bit later

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.

4 participants