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
Unmaintained
KDE Workspace
Commits
8a02a383
Commit
8a02a383
authored
Dec 10, 2011
by
Thomas Lübking
Browse files
unset/set NETWM shading state around minimizing
BUG: 81271 REVIEW: 103377
parent
ff0cc660
Changes
1
Hide whitespace changes
Inline
Side-by-side
kwin/client.cpp
View file @
8a02a383
...
...
@@ -982,6 +982,9 @@ void Client::minimize(bool avoid_animation)
return
;
}
if
(
isShade
())
// NETWM restriction - KWindowInfo::isMinimized() == Hidden && !Shaded
info
->
setState
(
0
,
NET
::
Shaded
);
#ifdef KWIN_BUILD_SCRIPTING
//Scripting call. Does not use a signal/slot mechanism
//as ensuring connections was a bit difficult between
...
...
@@ -1020,6 +1023,9 @@ void Client::unminimize(bool avoid_animation)
return
;
}
if
(
isShade
())
// NETWM restriction - KWindowInfo::isMinimized() == Hidden && !Shaded
info
->
setState
(
NET
::
Shaded
,
NET
::
Shaded
);
#ifdef KWIN_BUILD_SCRIPTING
SWrapper
::
WorkspaceProxy
*
ws_wrap
=
SWrapper
::
WorkspaceProxy
::
instance
();
if
(
ws_wrap
!=
0
)
{
...
...
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