[vlc-commits] [Git][videolan/vlc][master] qt: use correct root window in compositor_x11_renderwindow.cpp

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun May 19 09:35:52 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
fd10fa60 by Fatih Uzunoglu at 2024-05-19T09:16:58+00:00
qt: use correct root window in compositor_x11_renderwindow.cpp

Here, the root window is supposed to be the screen's root window.

- - - - -


1 changed file:

- modules/gui/qt/maininterface/compositor_x11_renderwindow.cpp


Changes:

=====================================
modules/gui/qt/maininterface/compositor_x11_renderwindow.cpp
=====================================
@@ -383,8 +383,6 @@ bool CompositorX11RenderWindow::init()
     const auto nativeInterface = qGuiApp->nativeInterface<QNativeInterface::QX11Application>();
     assert(nativeInterface);
     xcb_connection_t* qtConn = nativeInterface->connection();
-    xcb_window_t rootWindow = winId();
-
     QPlatformNativeInterface *native = qApp->platformNativeInterface();
     if (!native)
         return true;
@@ -396,6 +394,7 @@ bool CompositorX11RenderWindow::init()
     }
 
     //_GTK_FRAME_EXTENTS should be available at least on Gnome/KDE/FXCE/Enlightement
+    const xcb_window_t rootWindow = reinterpret_cast<intptr_t>(native->nativeResourceForIntegration(QByteArrayLiteral("rootwindow")));
     xcb_atom_t gtkExtendFrame = getInternAtom(qtConn, _GTK_FRAME_EXTENTS);
     if (gtkExtendFrame != XCB_ATOM_NONE && wmNetSupport(qtConn, rootWindow, gtkExtendFrame))
     {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fd10fa60d2e3abc12b58fd3152c01b276251ee3a

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fd10fa60d2e3abc12b58fd3152c01b276251ee3a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list