Fatih Uzunoglu
d668d60190
qt: graceful exit on scene graph error in all cases
Currently only `CompositorDirectComposition` does graceful
exit on scene graph error.
1 year ago
Fatih Uzunoglu
fca405daa9
qt: handle resize outside the client area on windows
We can use the transparent area to restrict the client
size and use that remaining extra size for resizing.
This size needs to be adjusted with regard to the dpi.
Note that on Windows 10 and Windows 7, this brings
borders.
1 year ago
Fatih Uzunoglu
90471d6e69
qt: use `QWindow::setVisible()` instead of `QWindow::show()`
`QWindow::show()` does not necessarily care about the state
of the window, but rather uses the default behavior for the
platform.
Since we adjust the window geometry and states before the
window is shown (which is the expected behavior, as otherwise
the window would get adjusted immediately after shown), using
`QWindow::show()` potentially overrides the window states
nullifying the behavior of the interface starting maximized.
1 year ago
Fatih Uzunoglu
46779bdbcd
qt: do not discard result of `MainUI::setup()` in compositor_dummy
Otherwise we can not achieve graceful failure.
2 years ago
Steve Lhomme
f6df83c061
qt: remove preInit() that always returns true
2 years ago
Fatih Uzunoglu
b6cab182c9
qt: respect `commonGUICreate()` return value in `CompositorDummy::makeMainInterface()`
2 years ago
Fatih Uzunoglu
a04b04197e
qt: disable alpha buffer in compositor_dummy
2 years ago
Steve Lhomme
7a198cd386
qt: reorder includes to include windows.h later
Or rather vlc_cxx_helpers.hpp earlier which often includes winsock.
3 years ago
Pierre Lamot
5ebdaa848b
qt: pass and act on the main widget in InterfaceWindowHandler when available
changing directly the window visibility on the QWindow doesn't allways work as
expected on X11. pass and use the QMainWidget in this case
4 years ago
Rémi Denis-Courmont
84c253cdd1
window: rename vout_window* to vlc_window*
The baseline windowing code has not been specific to the video output
for a while.
4 years ago
Alexandre Janniaux
6b7a57f984
modules: fix typos
Typos found and reworked from codespell.
4 years ago
Benjamin Arnaud
c8b9045445
qt/compositor(s): Add activeFocusItem getter
4 years ago
Pierre Lamot
cea5406265
qt: rename MainInterface to MainCtx
MainInterface was the actual QWidget interface in VLC 3.0, now it's the
application context
only rename classes and files, no functional changes
4 years ago
Pierre Lamot
df7d632545
qt: move MainInterface instantiation outside of the compositor
5 years ago
Pierre Lamot
71c7f79d60
qt: delete explicitly the InterfaceWindowHandler before destroying the interface
using Qt parenting auto deletion leads to using the window in
InterfaceWindowHandler destructor while it's partially destroyed
5 years ago
Pierre Lamot
de8fb517c1
qt: bind maximization request from the interface window handler
5 years ago
Pierre Lamot
121d07d217
qt: expose main window in Compositor
5 years ago
Pierre Lamot
8a4cb45285
qt: don't use MainInterface as the root window in Dummy compositor
5 years ago
Pierre Lamot
6725dc70e1
qt: initialize compositor in two phases
some compositor requires to set Qt Attributes before Qt application
is started such as selecting the right graphical backend (ie: dcomp needs to set
OpenGLES). And some compositor needs know wich QPA is in use (ie: x11 vs
wayland), this can only be known after QApp is started.
Co-authored-by: Guillaume Nicolussi Castellan <nullgemm@videolabs.io>
5 years ago
Pierre Lamot
b60ad66fdb
qt: allow to partially unload the interface
this allows to unload the GUI part of the interface without destroying the
windows that may still be used by the vout window part.
5 years ago
Pierre Lamot
ec1a167076
qt: allow passing a global vout close callback to the compositor
5 years ago
Pierre Lamot
4044fe3bdf
qt: alias intf_thread_t as qt_intf_t
This is a preparatory commit
5 years ago
Prince Gupta
d118f1d0fc
qt: expose type of compositor through its interface
5 years ago
Pierre Lamot
75421e58fe
qt: ensure that the QML view is destroyed before its context in DummyCompositor
6 years ago
Pierre Lamot
e3ead9cbdd
qml: add support for client side decoration
6 years ago
Pierre Lamot
2465539ae6
qt: extract interface window handling from MainInterface
6 years ago
Pierre Lamot
3444c79f6e
qt: provide a dummy compositor
6 years ago