Skip to content
GitLab
Menu
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
7caef067
Commit
7caef067
authored
Sep 05, 2021
by
Xaver Hugl
Browse files
xdgshellclient: fix initial placement with maximize
BUG: 439986
(cherry picked from commit
ef894f34
)
parent
9a5794a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/workspace.cpp
View file @
7caef067
...
...
@@ -784,7 +784,7 @@ void Workspace::addShellClient(AbstractClient *client)
if
(
client
->
isRequestedFullScreen
())
{
placementDone
=
true
;
}
if
(
client
->
m
aximizeMode
()
==
MaximizeMode
::
MaximizeFull
)
{
if
(
client
->
requestedM
aximizeMode
()
==
MaximizeMode
::
MaximizeFull
)
{
placementDone
=
true
;
}
if
(
client
->
rules
()
->
checkPosition
(
invalidPoint
,
true
)
!=
invalidPoint
)
{
...
...
src/xdgshellclient.cpp
View file @
7caef067
...
...
@@ -369,6 +369,7 @@ XdgToplevelClient::XdgToplevelClient(XdgToplevelInterface *shellSurface)
setOnActivities
({
a
->
current
()});
}
#endif
move
(
workspace
()
->
activeOutput
()
->
geometry
().
center
());
connect
(
shellSurface
,
&
XdgToplevelInterface
::
windowTitleChanged
,
this
,
&
XdgToplevelClient
::
handleWindowTitleChanged
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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