Fixed bug related to mapping logic when docking when minimized is disabled.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 5 years ago
parent e05047be2b
commit 63502d3ac4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -356,10 +356,11 @@ void TQTrayLabel::map(void)
SubstructureNotifyMask | SubstructureRedirectMask, l, sizeof(l)); SubstructureNotifyMask | SubstructureRedirectMask, l, sizeof(l));
// skipTaskbar modifies _NET_WM_STATE. Make sure we dont override WMs value // skipTaskbar modifies _NET_WM_STATE. Make sure we dont override WMs value
TQTimer::singleShot(230, this, SLOT(skipTaskbar())); 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 // (when the window is mapped, often an IconicState WM_STATE message is sent too
// just before the NormalState) // just before the NormalState)
toggleDockWhenMinimized(); mSavedDWM = mDockWhenMinimized->isChecked(); // store for later use
mDockWhenMinimized->setChecked(false);
TQTimer::singleShot(500, this, SLOT(toggleDockWhenMinimized())); TQTimer::singleShot(500, this, SLOT(toggleDockWhenMinimized()));
} }

@ -126,7 +126,7 @@ protected:
private slots: private slots:
void realityCheck(void); void realityCheck(void);
void showOnAllDesktops(void); void showOnAllDesktops(void);
void toggleDockWhenMinimized(void) { mDockWhenMinimized->setChecked(!mDockWhenMinimized->isChecked()); } void toggleDockWhenMinimized(void) { mDockWhenMinimized->setChecked(mSavedDWM); }
void skipTaskbar(void); void skipTaskbar(void);
void setCustomIcon(void); void setCustomIcon(void);
void updateMenu(void); void updateMenu(void);
@ -148,6 +148,7 @@ private:
Window mDockedWindow; // the window which is being docked Window mDockedWindow; // the window which is being docked
int mBalloonTimeout, mShowId; int mBalloonTimeout, mShowId;
bool mDocked, mWithdrawn, mUndockWhenDead, mSessionManaged; bool mDocked, mWithdrawn, mUndockWhenDead, mSessionManaged;
bool mSavedDWM; // related to dock when minimized logic
TQString mTitle, mClass; // Title and hint of mDockedWindow TQString mTitle, mClass; // Title and hint of mDockedWindow
TQPixmap mAppIcon; // The current app icon (may not be same as pixmap()) TQPixmap mAppIcon; // The current app icon (may not be same as pixmap())

Loading…
Cancel
Save