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

Support for multiple xwaylands and focus/painting across them #366

Merged
merged 27 commits into from Jan 20, 2022

Conversation

Joshua-Ashton
Copy link
Collaborator

Allows us to virtualize focus from the game so it never knows we're doing something different.

Closes: #328

@Joshua-Ashton Joshua-Ashton force-pushed the multiple-xwaylands branch 19 times, most recently from c847252 to dd68d7b Compare January 12, 2022 23:36
@Joshua-Ashton Joshua-Ashton force-pushed the multiple-xwaylands branch 8 times, most recently from c14b2a3 to 603310e Compare January 19, 2022 00:26
Clang gets annoyed when doing offsetof for wl_container_of on a
non POD structure -- but there's no virtual inheritance of anything
fancy going on so it should shut up.
Doesn't fully support multiple xwaylands or have all the infrastructure for that yet. This just splits the globals out for now and passes the ctx around.
Allows us to bring back the sdlwindow mouse behaviour
Doesn't handle focus or painting anything other than the root context yet.
When the focus changes but the input focus does not (ie. overlay -> steam) the keyboard focus can be left behind on the game, which is not what we want.

Track this more ganularly.
Adds --xwayland-count to control the number of xwaylands.
Now we have an entire struct of previous_focus to go off of, we can remove the word current from them.
Makes this easier to read
More correct, stops reported frametimes being all over the place if steamcompmgr is waiting for stuff to happen.
…ontrol appid is not present inside of xwayland context

Allows us to run with multiple xwayland contexts and still have proper focus if the game launches into the first xwayland context
@Joshua-Ashton Joshua-Ashton merged commit 4237d3d into master Jan 20, 2022
@emersion emersion deleted the multiple-xwaylands branch February 6, 2022 08:29
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.

Support several Xwaylands
1 participant