forked from AuroraMiddleware/gtk
If we already have a pointer grab active with a grab cursor set, destroy
2003-12-07 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already have a pointer grab active with a grab cursor set, destroy that cursor to avoid a GDI resource leak. (#128410, Tim Evans)
This commit is contained in:
parent
05f3e9b9fb
commit
4e4748bc37
@ -1,3 +1,9 @@
|
||||
2003-12-07 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
|
||||
have a pointer grab active with a grab cursor set, destroy that
|
||||
cursor to avoid a GDI resource leak. (#128410, Tim Evans)
|
||||
|
||||
2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
|
||||
|
||||
* configure.in: Added Thai (th) to ALL_LINGUAS.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2003-12-07 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
|
||||
have a pointer grab active with a grab cursor set, destroy that
|
||||
cursor to avoid a GDI resource leak. (#128410, Tim Evans)
|
||||
|
||||
2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
|
||||
|
||||
* configure.in: Added Thai (th) to ALL_LINGUAS.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2003-12-07 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
|
||||
have a pointer grab active with a grab cursor set, destroy that
|
||||
cursor to avoid a GDI resource leak. (#128410, Tim Evans)
|
||||
|
||||
2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
|
||||
|
||||
* configure.in: Added Thai (th) to ALL_LINGUAS.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2003-12-07 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
|
||||
have a pointer grab active with a grab cursor set, destroy that
|
||||
cursor to avoid a GDI resource leak. (#128410, Tim Evans)
|
||||
|
||||
2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
|
||||
|
||||
* configure.in: Added Thai (th) to ALL_LINGUAS.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2003-12-07 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
|
||||
have a pointer grab active with a grab cursor set, destroy that
|
||||
cursor to avoid a GDI resource leak. (#128410, Tim Evans)
|
||||
|
||||
2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
|
||||
|
||||
* configure.in: Added Thai (th) to ALL_LINGUAS.
|
||||
|
@ -549,6 +549,14 @@ gdk_pointer_grab (GdkWindow *window,
|
||||
if (return_val == GDK_GRAB_SUCCESS)
|
||||
{
|
||||
p_grab_window = window;
|
||||
|
||||
if (p_grab_cursor != NULL)
|
||||
{
|
||||
if (GetCursor () == p_grab_cursor)
|
||||
SetCursor (NULL);
|
||||
DestroyCursor (p_grab_cursor);
|
||||
}
|
||||
|
||||
p_grab_cursor = hcursor;
|
||||
|
||||
if (p_grab_cursor != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user