summaryrefslogtreecommitdiffstats
path: root/tests/auto/compositor/compositor/mockclient.h
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2017-10-26 16:50:53 +0200
committerJohan Helsing <johan.helsing@qt.io>2017-10-27 07:43:19 +0000
commitc2b272ac73617a8d5ff25151534feda95ace63ee (patch)
tree4ab37dff6f86c93152a3eaee9b930210cfefab02 /tests/auto/compositor/compositor/mockclient.h
parent063299d8520ca5c944a596723e63e7654e712955 (diff)
Compositor tests: Don't assume global numeric name == wayland object id
Throughout the code we consistently and confusingly use the term, "id", instead of "numeric name" for Wayland globals. This is confusing because it's not the same as thing as wl_proxy_get_id returns, although the values frequently are the same because we typically bind to all globals in the order they are announced. So in this patch we turn m_outputs into a map with the numeric name and compare it with the numeric name we get in handleGlobalRemove. Change-Id: I0716bf66e12dbbf7b05b9ca5faa5d2beba297af5 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests/auto/compositor/compositor/mockclient.h')
-rw-r--r--tests/auto/compositor/compositor/mockclient.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/compositor/compositor/mockclient.h b/tests/auto/compositor/compositor/mockclient.h
index 7aa6a3b7b..dd50f9a28 100644
--- a/tests/auto/compositor/compositor/mockclient.h
+++ b/tests/auto/compositor/compositor/mockclient.h
@@ -64,7 +64,7 @@ public:
wl_display *display;
wl_compositor *compositor;
- QVector<wl_output *> m_outputs;
+ QMap<uint, wl_output *> m_outputs;
wl_shm *shm;
wl_registry *registry;
wl_shell *wlshell;