1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 14:08:06 +01:00

Allow undocking appicon when Alt is pressed

When moving an undocked appicon (or applet), allow it to
be docked even if Alt is still pressed

That conforms to pre-9fae35fbc4 behavior.
This commit is contained in:
Daniel Déchelotte
2013-10-07 23:49:23 +02:00
committed by Carlos R. Mafra
parent 2e64831fb6
commit 4d74b18987

View File

@@ -875,7 +875,7 @@ Bool wHandleAppIconMove(WAppIcon *aicon, XEvent *event)
wAppIconMove(aicon, x, y);
WDock *theNewDock = NULL;
if (!(ev.xmotion.state & MOD_MASK) || aicon->launching || aicon->lock) {
if (!(ev.xmotion.state & MOD_MASK) || aicon->launching || aicon->lock || originalDock == NULL) {
for (i = 0; dockable && i < scr->drawer_count + 2; i++) {
WDock *theDock = allDocks[i];
if (theDock == NULL)