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:
parent
905889bc39
commit
582da1d967
2 changed files with 577 additions and 623 deletions
1195
src/steamcompmgr.cpp
1195
src/steamcompmgr.cpp
File diff suppressed because it is too large
Load diff
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue