[Pipmak-Devel] Transition interrupts
Status: Alpha
Brought to you by:
cwalther
From: Aidan G. <wgs...@ih...> - 2008-02-09 09:20:03
|
Hello, I've managed to do something to the code for handling mouse button up/down events, which SEEMS to fix the problem of starting a transition during a transition, but there might still be something more subtle I've overlooked. I've attached a patch, generated against revision 179. And about the bug with grabbing the mouse after closing a dialog... flashback: > Also, when I bring up the save game dialog with the 'S' key, Pipmak >doesn't give me my mouse back, and I have to go to a virtual console >and kill Pipmak. If I add a call to SDL_WM_GrabInput() to ungrab the >mouse in the Lua C function which is called when the 'S' key is >pressed, that seems to solve this problem. I think it might only show wiht GTK. If I understand this properly, Pipmak uses GTK when built for Linux, and Aqua when built for Macintosh. So that might be why Christian doesn't get this bug. However, I have no idea if the bug is in GTK, Pipmak's code for using GTK, or with SDL. If I add a call to the SDL warp mouse function, at the end Lua function for the save dialog (the one called when the 'S' key is pressed), that seems to work as a crude workaround, but I don't know how to find a better solution. -Aidan |