summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-07-08 09:53:23 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-07-08 09:53:23 -0500
commit179f94a43e2316a3d69baf5768893505f8830027 (patch)
treeaeed3c31a2e94145c5cb2830ccbdc179d62fe790 /src/screen.cpp
parent700b18bffb6924b484464093d999349c010c4595 (diff)
downloadunity-window-decorator-179f94a43e2316a3d69baf5768893505f8830027.tar.gz
unity-window-decorator-179f94a43e2316a3d69baf5768893505f8830027.tar.bz2
Move hide/show to PrivateWindow, add wrapper hide/show.
The new hide/show are used by switcher, so that it doesn't call minimize/unminimize.
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index 05945ff..4f4a5de 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -2249,7 +2249,7 @@ CompScreen::enterShowDesktopMode ()
w->managed () && w->focus ())
{
w->setShowDesktopMode (true);
- w->hide ();
+ w->priv->hide ();
}
}
@@ -2282,7 +2282,7 @@ CompScreen::leaveShowDesktopMode (CompWindow *window)
return;
window->setShowDesktopMode (false);
- window->show ();
+ window->priv->show ();
/* return if some other window is still in show desktop mode */
foreach (CompWindow *w, priv->windows)
@@ -2301,7 +2301,7 @@ CompScreen::leaveShowDesktopMode (CompWindow *window)
continue;
w->setShowDesktopMode (false);
- w->show ();
+ w->priv->show ();
}
/* focus default window - most likely this will be the window
@@ -3487,9 +3487,9 @@ PrivateScreen::setCurrentDesktop (unsigned int desktop)
continue;
if (w->desktop () == desktop)
- w->show ();
+ w->priv->show ();
else
- w->hide ();
+ w->priv->hide ();
}
data = desktop;