Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
2d5954de by Fatih Uzunoglu at 2021-10-29T07:40:47+00:00
qt: x11 compositor enable Qt mouse tracking

- - - - -


2 changed files:

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


Changes:

=====================================
modules/gui/qt/maininterface/compositor_x11_renderwindow.cpp
=====================================
@@ -331,6 +331,7 @@ 
CompositorX11RenderWindow::CompositorX11RenderWindow(qt_intf_t* p_intf, xcb_conn
     m_rootWidget->setAttribute(Qt::WA_OpaquePaintEvent);
     m_rootWidget->setAttribute(Qt::WA_NoSystemBackground);
     m_rootWidget->setAttribute(Qt::WA_TranslucentBackground);
+    m_rootWidget->setAttribute(Qt::WA_MouseTracking);
 
     if (useCDS)
         m_rootWidget->setWindowFlag(Qt::FramelessWindowHint);


=====================================
modules/gui/qt/maininterface/compositor_x11_utils.cpp
=====================================
@@ -29,6 +29,7 @@ DummyNativeWidget::DummyNativeWidget(QWidget* parent, 
Qt::WindowFlags f)
     setAttribute(Qt::WA_NativeWindow, true);
     setAttribute(Qt::WA_OpaquePaintEvent, true);
     setAttribute(Qt::WA_PaintOnScreen, true);
+    setAttribute(Qt::WA_MouseTracking, true);
 }
 
 DummyNativeWidget::~DummyNativeWidget()



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

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/2d5954debbcf362df3cc61160b652e44105786a6
You're receiving this email because of your account on code.videolan.org.


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to