summaryrefslogtreecommitdiffstats
path: root/src/tqtraylabel.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-04-25 01:36:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-04-25 01:36:34 +0900
commit63502d3ac497715af3379a88b2270b04192881ea (patch)
tree7fa9b395f0c79211d754b4de715730436db78c0f /src/tqtraylabel.cpp
parente05047be2bcacf0a5f0f85373ec8aadfbfa073e3 (diff)
downloadtdedocker-63502d3ac497715af3379a88b2270b04192881ea.tar.gz
tdedocker-63502d3ac497715af3379a88b2270b04192881ea.zip
Fixed bug related to mapping logic when docking when minimized is disabled.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tqtraylabel.cpp')
-rw-r--r--src/tqtraylabel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tqtraylabel.cpp b/src/tqtraylabel.cpp
index 0b99f7e..4e0b717 100644
--- a/src/tqtraylabel.cpp
+++ b/src/tqtraylabel.cpp
@@ -356,10 +356,11 @@ void TQTrayLabel::map(void)
SubstructureNotifyMask | SubstructureRedirectMask, l, sizeof(l));
// skipTaskbar modifies _NET_WM_STATE. Make sure we dont override WMs value
TQTimer::singleShot(230, this, SLOT(skipTaskbar()));
- // disable "dock when minized" for a short while since we went to Iconic state
+ // disable "dock when minized" (if enable) for a short while since we went to Iconic state
// (when the window is mapped, often an IconicState WM_STATE message is sent too
// just before the NormalState)
- toggleDockWhenMinimized();
+ mSavedDWM = mDockWhenMinimized->isChecked(); // store for later use
+ mDockWhenMinimized->setChecked(false);
TQTimer::singleShot(500, this, SLOT(toggleDockWhenMinimized()));
}