Support PlasmaWindowInterface::sendToOutput
This commit is contained in:
parent
a3cbaf48dc
commit
0b74aa62c9
1 changed files with 7 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include "abstract_client.h"
|
#include "abstract_client.h"
|
||||||
|
|
||||||
#include "abstract_output.h"
|
#include "abstract_output.h"
|
||||||
|
#include "abstract_wayland_output.h"
|
||||||
#ifdef KWIN_BUILD_ACTIVITIES
|
#ifdef KWIN_BUILD_ACTIVITIES
|
||||||
#include "activities.h"
|
#include "activities.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -32,6 +33,7 @@
|
||||||
|
|
||||||
#include "wayland_server.h"
|
#include "wayland_server.h"
|
||||||
#include <KWaylandServer/plasmawindowmanagement_interface.h>
|
#include <KWaylandServer/plasmawindowmanagement_interface.h>
|
||||||
|
#include <KWaylandServer/output_interface.h>
|
||||||
|
|
||||||
#include <KDecoration2/DecoratedClient>
|
#include <KDecoration2/DecoratedClient>
|
||||||
#include <KDecoration2/Decoration>
|
#include <KDecoration2/Decoration>
|
||||||
|
@ -1692,6 +1694,11 @@ void AbstractClient::setupWindowManagementInterface()
|
||||||
setOnActivity(activityId, false);
|
setOnActivity(activityId, false);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
connect(w, &PlasmaWindowInterface::sendToOutput, this,
|
||||||
|
[this] (KWaylandServer::OutputInterface *output) {
|
||||||
|
sendToOutput(waylandServer()->findOutput(output));
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
m_windowManagementInterface = w;
|
m_windowManagementInterface = w;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue