mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-05-28 02:50:21 -04:00
WIP: sync geom test
This commit is contained in:
parent
6f0bca5593
commit
f26ea4c826
@ -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()
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user