Repository navigation
Merge all WindowId into a single type in the core crate - #3902
Merged
Merged
Conversation
madsmtm
force-pushed
the
madsmtm/there-can-be-only-one-window-id
branch
from
September 8, 2024 11:48
eea3202 to
4be1aac
Compare
Member
|
Linked PR got merged, so this should be unblocked now. |
kchibisov
force-pushed
the
madsmtm/there-can-be-only-one-window-id
branch
from
September 29, 2024 17:14
4be1aac to
7e054cb
Compare
kchibisov
marked this pull request as ready for review
September 29, 2024 17:14
kchibisov
requested review from
MarijnS95,
daxpedda,
jackpot51,
kchibisov and
notgull
as code owners
September 29, 2024 17:14
kchibisov
force-pushed
the
madsmtm/there-can-be-only-one-window-id
branch
from
September 29, 2024 17:16
7e054cb to
3a8e5fc
Compare
kchibisov
requested changes
Sep 29, 2024
kchibisov
left a comment
Member
There was a problem hiding this comment.
I've rebased, other than that I don't have any issues.
kchibisov
force-pushed
the
madsmtm/there-can-be-only-one-window-id
branch
from
September 29, 2024 17:47
3a8e5fc to
a53ba65
Compare
kchibisov
force-pushed
the
madsmtm/there-can-be-only-one-window-id
branch
from
October 8, 2024 13:10
80f5712 to
0697847
Compare
kchibisov
approved these changes
Oct 8, 2024
kchibisov
force-pushed
the
madsmtm/there-can-be-only-one-window-id
branch
from
October 8, 2024 13:19
0697847 to
0eb96de
Compare
WindowId is a window _identifier_, and as such doesn't store anything (unlike a _handle_). So we can safely make only be defined once, in the core crate. There are a few backends where we still use `into_raw` internally; I consider these patterns discouraged, we should not be passing around important state in the window id.
kchibisov
force-pushed
the
madsmtm/there-can-be-only-one-window-id
branch
from
October 8, 2024 13:24
0eb96de to
954befe
Compare
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WindowId is a window identifier, and as such doesn't store anything (unlike a handle). So we can safely make only be defined once, in the core crate.
There are a few backends where we still use
into_rawinternally; I consider these patterns discouraged, we should not be passing around important state in the window id.Builds upon #3864. Part of #3433.