summaryrefslogtreecommitdiffstats
path: root/kwin
diff options
context:
space:
mode:
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;