summaryrefslogtreecommitdiff
path: root/src/clock.cpp
diff options
context:
space:
mode:
authorFrank Blendinger <fb@intoxicatedmind.net>2009-12-06 22:49:01 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2009-12-09 00:24:15 +0100
commitb504b346af4e669e610982d3c9ee811f61f83b99 (patch)
tree75de9520034154fb0b4ba5ed9ebedc6bf8172fe7 /src/clock.cpp
parent64f64895ace4e67c771ffe0e50aaa8be03e3f269 (diff)
screen_switcher between current and last screen
Setting the new config variable "screen_switcher_browser_only" to "no" will make the "key_screen_switcher" key switch between the current and the last used screen, sort of like the Alt+Tab window switching mechanism in many window managers. This (intendedly) works only for the "main" screens (playlist, browser, media library, etc.) and not for info/lyrics/server info. Those screens can be closed with the screen_switcher key, but the will not be remembered. indentation correction in config
Diffstat (limited to 'src/clock.cpp')
-rw-r--r--src/clock.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clock.cpp b/src/clock.cpp
index 7268350e..a2ba5d93 100644
--- a/src/clock.cpp
+++ b/src/clock.cpp
@@ -87,6 +87,8 @@ void Clock::SwitchTo()
if (hasToBeResized)
Resize();
+ if (myScreen != this && myScreen->isTabbable())
+ myPrevScreen = myScreen;
myScreen = this;
myPlaylist->Items->Hide();
RedrawHeader = 1;