Video shifted down under Compiz
Ever since a workaround for this (#21875 (closed)) got in , there's this annoying glitch under Compiz (Reloaded) - a video or image is shifted down by the height of the titlebar:
causing that black stripe at the top and the same portion of image is cropped on the bottom. Even in fullscreen.
Trial and error showed that it seems to be some kind of a timing issue and luckily this fixed it for me completely:
diff -ur vlc-3.0.16_old/modules/gui/qt/qt.cpp vlc-3.0.16_new/modules/gui/qt/qt.cpp
--- vlc-3.0.16_old/modules/gui/qt/qt.cpp 2021-03-20 19:20:19.000000000 +0100
+++ vlc-3.0.16_new/modules/gui/qt/qt.cpp 2021-09-26 15:10:09.678778687 +0200
@@ -772,6 +772,8 @@
xid = XCreateSimpleWindow(sys->dpy, RootWindow(sys->dpy, snum),
0, 0, cfg->width, cfg->height,
0, black, black);
+
+ XSync(sys->dpy, True);
}
#endif
There are no negative side-effects, as far as I can tell, but then again I'm not very well versed in X11, let alone C++ and QT.
