levitation / vwkvasdopager

Automatically exported from code.google.com/p/vwkvasdopager
1 stars 0 forks source link

Strange behavior when dragging a window outside the pager. #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Grab a window in the pager by pressing the left mouse button.
2. Keep the mouse button down while moving the mouse cursor outside the pager.
3. Release mouse button.
4. Move the mouse cursor over different parts of the pager.

What is the expected output? What do you see instead?

I don't expect anything to happen when just hovering the pager. If you follow 
the steps above however the window thumbnail you initially grabbed will move to 
the desktop under the mouse as if the mouse button was still held down.

What version of the product are you using? On what operating system?

0.4.3a on Windows XP and Windows 7

Original issue reported on code.google.com by alexandre.jasmin on 1 Jul 2010 at 4:11

GoogleCodeExporter commented 9 years ago
Submitting patch for this and other minor click and drag issues.

Full list of changes:
 On WM_LBUTTONDOWN:
   - Call SetCapture() to track the mouse cursor when it goes outside the pager.

 On WM_LBUTTONUP:
   - Call ReleaseCapture()
   - If the cursor is outside the pager cancel drag and return.
   - Only bring a window to front if the cursor was initially over that window when the mouse button was pressed.
   - Only switch to a desk if the cursor was initially over that desk when the mouse button was pressed.

On WM_MOUSEMOVE:
   - If the mouse is outside the pager move dragged window to its initial desk and bails out.

Original comment by alexandre.jasmin on 3 Jul 2010 at 3:32

GoogleCodeExporter commented 9 years ago
Resubmitting patch without spaces after the “if” keyword conforming to the 
existing style.

Original comment by alexandre.jasmin on 3 Jul 2010 at 4:51

Attachments:

GoogleCodeExporter commented 9 years ago
Small correction. If not mousing down on a window mousedowndesk=0

Original comment by alexandre.jasmin on 8 Jul 2010 at 2:26

Attachments:

GoogleCodeExporter commented 9 years ago
patch is applied, 
closing the issue

Original comment by kvasdo...@gmail.com on 17 Jul 2010 at 2:25