Commit 167b6990 authored by David Edmundson's avatar David Edmundson
Browse files

Delete proxy for PrimaryOutput wayland interface in destructor

When our wrapper class QtWayland::kde_primary_output_v1 gets destroyed
there is no code to delete the underlying wl_proxy object. Any events to
that proxy after our wrapper have gone will get disaptched to the
generated code which in turn will just crash.

BUG: 451847
parent 85780ca4
Pipeline #172508 passed with stage
in 2 minutes and 51 seconds
......@@ -43,6 +43,13 @@ WaylandPrimaryOutput::WaylandPrimaryOutput(struct ::wl_registry *registry, int i
if (kde_primary_output_v1_get_version(object()) >= KDE_PRIMARY_OUTPUT_V1_DESTROY_SINCE_VERSION) {
void WaylandPrimaryOutput::kde_primary_output_v1_primary_output(const QString &outputName)
Q_EMIT primaryOutputChanged(outputName);
......@@ -47,6 +47,7 @@ class WaylandPrimaryOutput : public QObject, public QtWayland::kde_primary_outpu
WaylandPrimaryOutput(struct ::wl_registry *registry, int id, int version);
void primaryOutputChanged(const QString &outputName);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment