From 63502d3ac497715af3379a88b2270b04192881ea Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 25 Apr 2020 01:36:34 +0900 Subject: Fixed bug related to mapping logic when docking when minimized is disabled. Signed-off-by: Michele Calgaro --- src/tqtraylabel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tqtraylabel.cpp') 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())); } -- cgit v1.2.1