From 4a1550b7b036e76f1a729510b44e3d7f234c5926 Mon Sep 17 00:00:00 2001 From: "Pierre-Loup A. Griffais" Date: Fri, 22 Nov 2019 22:39:58 -0800 Subject: [PATCH] steamcompmgr only makes sense in the nested X display in this scenario. --- src/main.cpp | 1 + src/steamcompmgr.c | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5754ba8..7bf338f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 ) diff --git a/src/steamcompmgr.c b/src/steamcompmgr.c index 0e52aa0..4ef8dae 100644 --- a/src/steamcompmgr.c +++ b/src/steamcompmgr.c @@ -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");