From b504b346af4e669e610982d3c9ee811f61f83b99 Mon Sep 17 00:00:00 2001 From: Frank Blendinger Date: Sun, 6 Dec 2009 22:49:01 +0100 Subject: 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 --- src/clock.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/clock.cpp') 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; -- cgit v1.2.3