Browse Source

qt, x11compositor: accept drops on mainwindows

otherwise the interface never receives global drop events

ref #27190
pull/138/head
Prince Gupta 4 years ago
committed by Steve Lhomme
parent
commit
262a15a552
  1. 1
      modules/gui/qt/maininterface/compositor_x11_renderwindow.cpp

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

@ -323,6 +323,7 @@ CompositorX11RenderWindow::CompositorX11RenderWindow(qt_intf_t* p_intf, xcb_conn
, m_intf(p_intf)
, m_conn(conn)
{
setAcceptDrops(true);
setAttribute(Qt::WA_NativeWindow);
setAttribute(Qt::WA_OpaquePaintEvent);
setAttribute(Qt::WA_NoSystemBackground);

Loading…
Cancel
Save