summaryrefslogtreecommitdiffstats
path: root/kwin
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-10 22:32:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-10 22:32:00 +0000
commit1f40ada72d693d681ec6a32c2ef717e8dd73b5bb (patch)
tree54c647b881fd1f91a9cd4390237ec0a8888a8f34 /kwin
parent29570c5acb30252e5db7552b89150035bbdd9409 (diff)
downloadtdebase-1f40ada72d693d681ec6a32c2ef717e8dd73b5bb.tar.gz
tdebase-1f40ada72d693d681ec6a32c2ef717e8dd73b5bb.zip
Force windows with the modal system notification atom set to stay above other windows
Enhance logout sequence appearance Add remote folder synchronization on logout support Fix flickering to black window with subsequent partial repaint of certain widgets occurring during fancy logout sequence git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1252640 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin')
-rw-r--r--kwin/client.cpp12
-rw-r--r--kwin/client.h5
2 files changed, 11 insertions, 6 deletions
diff --git a/kwin/client.cpp b/kwin/client.cpp
index 114300821..0a7f71526 100644
--- a/kwin/client.cpp
+++ b/kwin/client.cpp
@@ -610,7 +610,7 @@ void Client::hideClient( bool hide )
updateVisibility();
}
-/*
+/*!
Returns whether the window is minimizable or not
*/
bool Client::isMinimizable() const
@@ -644,6 +644,16 @@ bool Client::isMinimizable() const
}
/*!
+ Returns whether the window is kept above or not
+ */
+bool Client::keepAbove() const
+ {
+ if( isModalSystemNotification())
+ return true;
+ return keep_above;
+ }
+
+/*!
Minimizes this client plus its transients
*/
void Client::minimize( bool avoid_animation )
diff --git a/kwin/client.h b/kwin/client.h
index 9ee08efe5..ec94a994d 100644
--- a/kwin/client.h
+++ b/kwin/client.h
@@ -792,11 +792,6 @@ inline bool Client::skipPager() const
return skip_pager;
}
-inline bool Client::keepAbove() const
- {
- return keep_above;
- }
-
inline bool Client::keepBelow() const
{
return keep_below;