steamcompmgr: Split globals into xwayland_ctx_t

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.
This commit is contained in:
Joshua Ashton 2022-01-06 04:41:54 +00:00 committed by Joshie
parent 905889bc39
commit 582da1d967
2 changed files with 577 additions and 623 deletions

File diff suppressed because it is too large Load diff

View file

@ -31,11 +31,12 @@ struct ResListEntry_t {
struct _XDisplay;
struct win;
struct xwayland_ctx_t;
class MouseCursor
{
public:
explicit MouseCursor(_XDisplay *display);
explicit MouseCursor(xwayland_ctx_t *ctx);
int x() const;
int y() const;
@ -77,7 +78,7 @@ private:
PointerBarrier m_scaledFocusBarriers[4] = { None };
_XDisplay *m_display;
xwayland_ctx_t *m_ctx;
};
extern std::mutex wayland_commit_lock;