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
75d71a1c
Commit
75d71a1c
authored
Dec 25, 2021
by
Ismael Asensio
Browse files
AbstractClient: Re-check screen rules on screen enabled
BUG: 409979
FIXED-IN: 5.25
parent
a518a4d5
Pipeline
#164758
passed with stage
in 15 minutes and 26 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
autotests/integration/xdgshellclient_rules_test.cpp
View file @
75d71a1c
...
...
@@ -2921,7 +2921,6 @@ void TestXdgShellClientRules::testScreenForce()
kwinApp
()
->
platform
()
->
applyOutputChanges
(
config
);
QVERIFY
(
outputs
.
at
(
1
)
->
isEnabled
());
QEXPECT_FAIL
(
""
,
"Disabling and enabling an output does not move the client to the Forced screen"
,
Continue
);
QCOMPARE
(
m_client
->
output
()
->
name
(),
outputs
.
at
(
1
)
->
name
());
// Close and reopen the client.
...
...
src/workspace.cpp
View file @
75d71a1c
...
...
@@ -1227,6 +1227,11 @@ void Workspace::slotOutputEnabled(Output *output)
connect
(
output
,
&
Output
::
geometryChanged
,
this
,
&
Workspace
::
desktopResized
);
desktopResized
();
// Trigger a re-check of output-related rules on all clients
for
(
AbstractClient
*
client
:
qAsConst
(
m_allClients
))
{
sendClientToOutput
(
client
,
client
->
output
());
}
}
void
Workspace
::
slotOutputDisabled
(
Output
*
output
)
...
...
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