From 1f40ada72d693d681ec6a32c2ef717e8dd73b5bb Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 10 Sep 2011 22:32:00 +0000 Subject: 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 --- kwin/client.cpp | 12 +++++++++++- kwin/client.h | 5 ----- 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'kwin') 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 @@ -643,6 +643,16 @@ bool Client::isMinimizable() const return true; } +/*! + 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 */ 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; -- cgit v1.2.1