summaryrefslogtreecommitdiffstats
path: root/tests/auto/client/shared/coreprotocol.h
diff options
context:
space:
mode:
authorMarco Martin <notmart@gmail.com>2023-02-24 17:40:48 +0100
committerDavid Edmundson <davidedmundson@kde.org>2023-02-27 10:07:47 +0000
commit9858708993906f7a449c127b6c1f24ccae7ed453 (patch)
tree97d669307ae145d9adc9ab998e714ea4c2bccf00 /tests/auto/client/shared/coreprotocol.h
parent5703d0a242aef9402d4b72ab50fe336f453e49fd (diff)
client: Force a roundtrip when an XdgOutput is not ready yet
Is possible that the server sends a surface_enter before all the information of the XdgOutput have been processed by the client. in this case the associated QScreen doesn't exist yet, causing a QWindow::SetScreen(nullptr), which will fall back to QGuiApplication::primaryScreen(), having the QWindow being assigned the wrong screen Change-Id: I923d5d3a35484deafa6f0572f79c16c27b1f87f0 Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'tests/auto/client/shared/coreprotocol.h')
-rw-r--r--tests/auto/client/shared/coreprotocol.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/client/shared/coreprotocol.h b/tests/auto/client/shared/coreprotocol.h
index 74f07afbf..8703fe1d3 100644
--- a/tests/auto/client/shared/coreprotocol.h
+++ b/tests/auto/client/shared/coreprotocol.h
@@ -288,6 +288,9 @@ public:
OutputData m_data;
int m_version = 1; // TODO: remove on libwayland upgrade
+Q_SIGNALS:
+ void outputBound(Resource *resource);
+
protected:
void output_bind_resource(Resource *resource) override;
};