Skip to content

X11: cache custom cursors#3366

Merged
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:x11-cache-cursor
Jan 17, 2024
Merged

X11: cache custom cursors#3366
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:x11-cache-cursor

Conversation

@daxpedda
Copy link
Copy Markdown
Member

@daxpedda daxpedda commented Jan 5, 2024

Addresses #3306.

Wayland isn't really affected, just needed some slight refactoring to account for different backends.

@daxpedda daxpedda added the DS - x11 Affects the X11 backend, or generally free Unix platforms label Jan 5, 2024
@daxpedda daxpedda requested a review from notgull January 5, 2024 19:01
@daxpedda daxpedda requested a review from kchibisov as a code owner January 5, 2024 19:01
RootCustomCursor {
inner: PlatformCustomCursor::X11(_),
} => {
error!("passed a X11 cursor to Wayland backend");
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I could change those to unreachable!, because you can't recreate event loops on those platforms, right?

@daxpedda daxpedda mentioned this pull request Jan 5, 2024
25 tasks
Copy link
Copy Markdown
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

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

Looks good to me

@daxpedda daxpedda force-pushed the x11-cache-cursor branch 2 times, most recently from ee22f86 to a14ddec Compare January 17, 2024 17:04
@daxpedda daxpedda merged commit d1717b6 into rust-windowing:master Jan 17, 2024
jpedrick pushed a commit to jpedrick/winit that referenced this pull request Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DS - x11 Affects the X11 backend, or generally free Unix platforms

Development

Successfully merging this pull request may close these issues.

2 participants