Description: Dragging a window in the workspace manager causes it to pop right
 This has annoyed me for years. With ReallyMoveInWorkspaceManager set, you
 can drag windows (within workspaces and between them) by manipulating the
 tiny "thumbnail" versions in the workspace manager.
 .
 However, on most of my machines (like the one I'm typing this on) this
 causes the real window to pop to the right of the screen. You can control
 which workspace it ends up in and where it's placed vertically, but it
 will always be placed to the right.
 .
 It turns out upstream has fixed this bug in 3.8a, although I couldn't see
 it mentioned in their changelog. I cherry-picked the relevant change
 (one character) and attach it here as a patch.
 .
 (I use ctwm exclusively, and yet I haven't had an urge to move to
 3.8a ... but I note that it's been out for years without making it
 into Debian. I guess your time and energy is limited, too.)
Author: Jorgen Grahn <grahn+src@snipabacken.se>
Bug-Debian: https://bugs.debian.org/585693

--- ctwm-3.7.orig/workmgr.c
+++ ctwm-3.7/workmgr.c
@@ -2737,7 +2737,7 @@ void WMgrHandleButtonEvent (virtualScree
 			    winX = Scr->BorderLeft;
 			    newX = msw->x + XW + Scr->BorderLeft * mw->wwidth / vs->w;
 			}
-			if (((winX + w) > vs->x - Scr->BorderRight) &&
+			if (((winX + w) > vs->w - Scr->BorderRight) &&
 			    ((Scr->MoveOffResistance < 0) ||
 			     ((winX + w) < vs->w - Scr->BorderRight + Scr->MoveOffResistance))) {
 			    winX = vs->w - Scr->BorderRight - w;
