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:
Tor Lillqvist 2003-12-07 06:56:30 +00:00 committed by Tor Lillqvist
parent 05f3e9b9fb
commit 4e4748bc37
6 changed files with 38 additions and 0 deletions

View File

@ -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> 2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
* configure.in: Added Thai (th) to ALL_LINGUAS. * configure.in: Added Thai (th) to ALL_LINGUAS.

View File

@ -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> 2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
* configure.in: Added Thai (th) to ALL_LINGUAS. * configure.in: Added Thai (th) to ALL_LINGUAS.

View File

@ -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> 2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
* configure.in: Added Thai (th) to ALL_LINGUAS. * configure.in: Added Thai (th) to ALL_LINGUAS.

View File

@ -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> 2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
* configure.in: Added Thai (th) to ALL_LINGUAS. * configure.in: Added Thai (th) to ALL_LINGUAS.

View File

@ -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> 2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
* configure.in: Added Thai (th) to ALL_LINGUAS. * configure.in: Added Thai (th) to ALL_LINGUAS.

View File

@ -549,6 +549,14 @@ gdk_pointer_grab (GdkWindow *window,
if (return_val == GDK_GRAB_SUCCESS) if (return_val == GDK_GRAB_SUCCESS)
{ {
p_grab_window = window; p_grab_window = window;
if (p_grab_cursor != NULL)
{
if (GetCursor () == p_grab_cursor)
SetCursor (NULL);
DestroyCursor (p_grab_cursor);
}
p_grab_cursor = hcursor; p_grab_cursor = hcursor;
if (p_grab_cursor != NULL) if (p_grab_cursor != NULL)