Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
8d960739
Commit
8d960739
authored
Aug 30, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
Implement org_kde_plasma_window_management::send_to_output
parent
525d12be
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/wayland/plasmawindowmanagement_interface.cpp
View file @
8d960739
...
...
@@ -108,6 +108,7 @@ protected:
void
org_kde_plasma_window_request_leave_virtual_desktop
(
Resource
*
resource
,
const
QString
&
id
)
override
;
void
org_kde_plasma_window_request_enter_activity
(
Resource
*
resource
,
const
QString
&
id
)
override
;
void
org_kde_plasma_window_request_leave_activity
(
Resource
*
resource
,
const
QString
&
id
)
override
;
void
org_kde_plasma_window_send_to_output
(
Resource
*
resource
,
struct
wl_resource
*
output
)
override
;
};
PlasmaWindowManagementInterfacePrivate
::
PlasmaWindowManagementInterfacePrivate
(
PlasmaWindowManagementInterface
*
_q
,
Display
*
display
)
...
...
@@ -477,6 +478,12 @@ void PlasmaWindowInterfacePrivate::org_kde_plasma_window_request_leave_activity(
Q_EMIT
q
->
leavePlasmaActivityRequested
(
id
);
}
void
PlasmaWindowInterfacePrivate
::
org_kde_plasma_window_send_to_output
(
Resource
*
resource
,
struct
wl_resource
*
output
)
{
Q_UNUSED
(
resource
)
Q_EMIT
q
->
sendToOutput
(
KWaylandServer
::
OutputInterface
::
get
(
output
));
}
void
PlasmaWindowInterfacePrivate
::
setTitle
(
const
QString
&
title
)
{
if
(
m_title
==
title
)
{
...
...
src/wayland/plasmawindowmanagement_interface.h
View file @
8d960739
...
...
@@ -14,6 +14,7 @@ class QSize;
namespace
KWaylandServer
{
class
Display
;
class
OutputInterface
;
class
PlasmaWindowActivationFeedbackInterfacePrivate
;
class
PlasmaWindowInterface
;
class
PlasmaVirtualDesktopManagementInterface
;
...
...
@@ -309,6 +310,11 @@ Q_SIGNALS:
*/
void
leavePlasmaActivityRequested
(
const
QString
&
activity
);
/**
* Requests sending the window to @p output
*/
void
sendToOutput
(
KWaylandServer
::
OutputInterface
*
output
);
private:
friend
class
PlasmaWindowManagementInterface
;
friend
class
PlasmaWindowInterfacePrivate
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment