steamcompmgr only makes sense in the nested X display in this scenario.
This commit is contained in:
parent
77d0e72c69
commit
4a1550b7b0
2 changed files with 3 additions and 6 deletions
|
@ -141,6 +141,7 @@ void wayland_PushSurface(struct wlr_surface *surf, struct wlr_dmabuf_attributes
|
|||
};
|
||||
|
||||
XSendEvent( XWLDpy , DefaultRootWindow( XWLDpy ), True, ExposureMask, &XWLExposeEvent);
|
||||
XFlush( XWLDpy );
|
||||
}
|
||||
|
||||
int steamCompMgr_PullSurface( struct ResListEntry_t *pResEntry )
|
||||
|
|
|
@ -1640,19 +1640,15 @@ steamcompmgr_main (int argc, char **argv)
|
|||
unsigned int nchildren;
|
||||
int i;
|
||||
int composite_major, composite_minor;
|
||||
char *display = NULL;
|
||||
int o;
|
||||
|
||||
|
||||
// :/
|
||||
optind = 1;
|
||||
|
||||
while ((o = getopt (argc, argv, ":d:nSvV")) != -1)
|
||||
while ((o = getopt (argc, argv, ":nSvV")) != -1)
|
||||
{
|
||||
switch (o) {
|
||||
case 'd':
|
||||
display = optarg;
|
||||
break;
|
||||
case 'n':
|
||||
doRender = False;
|
||||
break;
|
||||
|
@ -1670,7 +1666,7 @@ steamcompmgr_main (int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
dpy = XOpenDisplay (display);
|
||||
dpy = XOpenDisplay (wlserver.wlr.xwayland->display_name);
|
||||
if (!dpy)
|
||||
{
|
||||
fprintf (stderr, "Can't open display\n");
|
||||
|
|
Loading…
Reference in a new issue