Skip to content

Commit

Permalink
fix(client): set correct parent of output configuration
Browse files Browse the repository at this point in the history
Setting the manager as parent of a configuration is unexpected and unsafe.
Instead set the provided parent if any.
  • Loading branch information
romangg committed Apr 8, 2023
1 parent 558a5ea commit ac23f41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/wlr_output_manager_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ bool WlrOutputManagerV1::isValid() const

WlrOutputConfigurationV1* WlrOutputManagerV1::createConfiguration(QObject* parent)
{
Q_UNUSED(parent);
auto* config = new WlrOutputConfigurationV1(this);
auto config = new WlrOutputConfigurationV1(parent);
auto w = zwlr_output_manager_v1_create_configuration(d->outputManager, d->serial);

if (d->queue) {
Expand Down

0 comments on commit ac23f41

Please sign in to comment.