From a35fdc9c4df20c017653edfaa77465dfe85d38d6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 11 Jan 2013 14:27:25 -0600 Subject: Add profile support to displayconfig and krandrtray Add automatic display hotplug profile switch support to krandrtray --- kicker/kicker/core/container_extension.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'kicker') diff --git a/kicker/kicker/core/container_extension.cpp b/kicker/kicker/core/container_extension.cpp index 1b7857774..e6c6912f1 100644 --- a/kicker/kicker/core/container_extension.cpp +++ b/kicker/kicker/core/container_extension.cpp @@ -2030,6 +2030,13 @@ TQRect ExtensionContainer::initialGeometry(KPanelExtension::Position p, { //RESEARCH: is there someway to cache the results of the repeated calls to this method? + if (XineramaScreen == -3) { + // Forcibly hide + autoHidden = true; + userHidden = Unhidden; + XineramaScreen = kapp->desktop()->screenNumber(const_cast(this)); + } + /*kdDebug(1210) << "initialGeometry() Computing geometry for " << name() << " on screen " << XineramaScreen << endl;*/ TQRect workArea = ExtensionManager::the()->workArea(XineramaScreen, this); -- cgit v1.2.1