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.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tqtraylabel.h') diff --git a/src/tqtraylabel.h b/src/tqtraylabel.h index 462fc61..17a3fce 100644 --- a/src/tqtraylabel.h +++ b/src/tqtraylabel.h @@ -126,7 +126,7 @@ protected: private slots: void realityCheck(void); void showOnAllDesktops(void); - void toggleDockWhenMinimized(void) { mDockWhenMinimized->setChecked(!mDockWhenMinimized->isChecked()); } + void toggleDockWhenMinimized(void) { mDockWhenMinimized->setChecked(mSavedDWM); } void skipTaskbar(void); void setCustomIcon(void); void updateMenu(void); @@ -148,6 +148,7 @@ private: Window mDockedWindow; // the window which is being docked int mBalloonTimeout, mShowId; bool mDocked, mWithdrawn, mUndockWhenDead, mSessionManaged; + bool mSavedDWM; // related to dock when minimized logic TQString mTitle, mClass; // Title and hint of mDockedWindow TQPixmap mAppIcon; // The current app icon (may not be same as pixmap()) -- cgit v1.2.1