GNOME Bugzilla – Bug 110510
Mouse-up selects workspace even after drag
Last modified: 2006-05-15 17:22:35 UTC
Try clicking and holding on a workspace grid on the workspace-switcher, and then dragging the mouse to a new workspace grid before you release the mouse button. The mouse-up event causes you to switch to the new workspace, but it shouldn't. The drag should have canceled the workspace switch. This is particularly an issue if you try to drag a window from one workspace to another, but miss the window. You get switched to the workspace you were trying to drag the window to, and the window hasn't moved from the first workspace.
Moving to right component. Sorry for the spam.
Created attachment 59634 [details] [review] Proposed patch This is a proposed patch. It could do with a review since I'm reusing some variables that are used for drag and drop to detect this case. It also changes the functions so that we immediately return if the button is not the left button.