Re: is it possible to restrict the mouse to the current window?
Tuomo Valkonen <[email protected]>
| Newsgroups | gmane.comp.window-managers.ion.general |
|---|---|
| Message-ID | <[email protected]> |
On 2008-05-27, sunway <[email protected]> wrote: > when playing the "wesnoth" game in it's windowed mode, i need to use mouse > to scroll the game's screen, however when the mouse is at the edge of the > screen, it will be moved out of the screen instead of scroll the game's > screen. how to solve the problem? I have found that if i play the game > in full screen mode, it is ok It's possible to restrict a pointer to a given window when it's grabbed. But the application itself should then grab the pointer to get the events; forwarding is too cumbersome. I know of no other clean way. Maybe a poll-and-warp hack could be implemented as an external program, but it's very ugly. -- Tuomo