Re: [dev] Lock mouse focus on window

2011-01-30 Thread Samuel Baldwin
2011/1/30 Daniel : > run winecfg and check 'Allow DirectX apps to stop the mouse leaving > their window' under Graphics tab. Surprisingly that doesn't work. Not sure why, probably an artifact of the game. I'm going to try Rob's patch and/or the warp patch. Thank you. -- Samuel Baldwin - logik.li

Re: [dev] Lock mouse focus on window

2011-01-30 Thread Moritz Wilhelmy
Thanks! Maybe this can be useful in conjunction with the warp patch. Cheers, Moritz

Re: [dev] Lock mouse focus on window

2011-01-30 Thread Daniel
On 01/30/2011 07:09 AM, Samuel Baldwin wrote: > (...)? I'm running a > game in wine and the mouse leaves the window once I get to the edge. run winecfg and check 'Allow DirectX apps to stop the mouse leaving their window' under Graphics tab. -- () ascii ribbon campaign - against html e-mail /\

Re: [dev] Lock mouse focus on window

2011-01-30 Thread Rob
> I've attached code for dwm anyway. And a fix. --- pointer-lock.c 2011-01-30 13:01:37.39681 + +++ pointer-lock2.c 2011-01-30 13:09:44.83434 + @@ -2,6 +2,8 @@ pointerlock(const Arg *a) { if(a->i){ + if(!selmon->sel) + return; if(XGrabPointer(dpy, selmon->sel->win, False,

Re: [dev] Lock mouse focus on window

2011-01-30 Thread Rob
> Is there a way to manually lock mouse focus on a window? I'm running a > game in wine and the mouse leaves the window once I get to the edge. > Since the game is an FPS this isn't really acceptable. Even if I > fullscreen the app the mouse just stops when it gets to the window, > which doesn't re

[dev] Lock mouse focus on window

2011-01-29 Thread Samuel Baldwin
Is there a way to manually lock mouse focus on a window? I'm running a game in wine and the mouse leaves the window once I get to the edge. Since the game is an FPS this isn't really acceptable. Even if I fullscreen the app the mouse just stops when it gets to the window, which doesn't really work