WIP: sync geom test

This commit is contained in:
David Edmundson 2023-12-11 10:21:59 +00:00
parent 6f0bca5593
commit f26ea4c826
2 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ QWaylandLayerSurface::QWaylandLayerSurface(QWaylandLayerShellIntegration *shell,
, QtWayland::zwlr_layer_surface_v1() , QtWayland::zwlr_layer_surface_v1()
, m_shell(shell) , m_shell(shell)
, m_interface(Window::get(window->window())) , m_interface(Window::get(window->window()))
, m_window(window)
{ {
wl_output *output = nullptr; wl_output *output = nullptr;
if (m_interface->screenConfiguration() == Window::ScreenFromQWindow) { if (m_interface->screenConfiguration() == Window::ScreenFromQWindow) {
@ -157,6 +158,7 @@ void QWaylandLayerSurface::setWindowGeometry(const QRect &geometry)
size.setHeight(0); size.setHeight(0);
} }
set_size(size.width(), size.height()); set_size(size.width(), size.height());
wl_display_roundtrip(m_window->display()->wl_display());
} }
bool QWaylandLayerSurface::requestActivate() bool QWaylandLayerSurface::requestActivate()

View File

@ -55,6 +55,7 @@ private:
QWaylandLayerShellIntegration *m_shell; QWaylandLayerShellIntegration *m_shell;
LayerShellQt::Window *m_interface; LayerShellQt::Window *m_interface;
QtWaylandClient::QWaylandWindow *m_window;
QSize m_pendingSize; QSize m_pendingSize;
QString m_activationToken; QString m_activationToken;
bool m_configured = false; bool m_configured = false;