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");