initialize screens only if necessary
This commit is contained in:
@@ -38,6 +38,7 @@ void Outputs::Init()
|
||||
w->SetItemDisplayer(Display::Pairs);
|
||||
|
||||
FetchList();
|
||||
isInitialized = 1;
|
||||
}
|
||||
|
||||
void Outputs::SwitchTo()
|
||||
@@ -45,6 +46,9 @@ void Outputs::SwitchTo()
|
||||
if (myScreen == this)
|
||||
return;
|
||||
|
||||
if (!isInitialized)
|
||||
Init();
|
||||
|
||||
if (hasToBeResized)
|
||||
Resize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user