qt: reparent video window to root whence UI closes
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 5 Feb 2021 17:46:15 +0000 (19:46 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 9 Mar 2021 16:42:00 +0000 (16:42 +0000)
commitdb97ee3cc960f63f32bdde6496a6ce2777900be9
treebd0b43f3ec4b02e89a10790fc56f7c01156a317e
parent97ddea4a9b571aabdb960b2e32c8e0661a7c4a79
qt: reparent video window to root whence UI closes

The video window has to exist until it is closed by its owner, i.e.
WindowClose() is called. If it stayed as a child of the main UI window,
it would be destroyed with the main UI window.

This reparents it (back) to the root window before the main UI window
gets destroyed. This works around #21875.

Gbp-Pq: Name 0006-qt-reparent-video-window-to-root-whence-UI-closes.patch
modules/gui/qt/components/interface_widgets.cpp
modules/gui/qt/main_interface.cpp
modules/gui/qt/qt.cpp