summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-09-30 22:20:58 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-09-30 22:20:58 +0800
commitb730dd4cc326617cdc754e6c29e23c355ebee8ec (patch)
tree267b5a01e90b496def0bf730c397aafa8cb14542 /src/window.cpp
parent49710b8fd3d8fcc3b82bd0ab16bab6c257eca8c6 (diff)
downloadunity-window-decorator-b730dd4cc326617cdc754e6c29e23c355ebee8ec.tar.gz
unity-window-decorator-b730dd4cc326617cdc754e6c29e23c355ebee8ec.tar.bz2
Clean up isViewable
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 46a55d8..461019a 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -5359,10 +5359,7 @@ CompWindow::isMapped () const
bool
CompWindow::isViewable () const
{
- if (priv->attrib.map_state != IsViewable)
- return false;
-
- return true;
+ return (priv->attrib.map_state == IsViewable);
}
bool