Let the system handle Alt-Space, too. Thanks to Tim Evans (#91477).

2002-08-24  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
	system handle Alt-Space, too. Thanks to Tim Evans (#91477).

	Fix for #81831 by Tim Evans:

	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
	_gdk_event_button_generate() here, it would append the double- or
	triple-click events too early, before the single-click event.

	(inner_window_proc): If we got a single-click event, call
	_gdk_event_button_generate() to perhaps append the double- or
	triple-click event after that.
This commit is contained in:
Tor Lillqvist
2002-08-24 20:57:52 +00:00
committed by Tor Lillqvist
parent 8a1457e100
commit f139bcb69d
7 changed files with 101 additions and 2 deletions

View File

@@ -1,3 +1,18 @@
2002-08-24 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
system handle Alt-Space, too. Thanks to Tim Evans (#91477).
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
_gdk_event_button_generate() here, it would append the double- or
triple-click events too early, before the single-click event.
(inner_window_proc): If we got a single-click event, call
_gdk_event_button_generate() to perhaps append the double- or
triple-click event after that.
2002-08-01 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Remove gtk+.spec stuff, not needed in this (Win32

View File

@@ -1,3 +1,18 @@
2002-08-24 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
system handle Alt-Space, too. Thanks to Tim Evans (#91477).
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
_gdk_event_button_generate() here, it would append the double- or
triple-click events too early, before the single-click event.
(inner_window_proc): If we got a single-click event, call
_gdk_event_button_generate() to perhaps append the double- or
triple-click event after that.
2002-08-01 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Remove gtk+.spec stuff, not needed in this (Win32

View File

@@ -1,3 +1,18 @@
2002-08-24 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
system handle Alt-Space, too. Thanks to Tim Evans (#91477).
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
_gdk_event_button_generate() here, it would append the double- or
triple-click events too early, before the single-click event.
(inner_window_proc): If we got a single-click event, call
_gdk_event_button_generate() to perhaps append the double- or
triple-click event after that.
2002-08-01 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Remove gtk+.spec stuff, not needed in this (Win32

View File

@@ -1,3 +1,18 @@
2002-08-24 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
system handle Alt-Space, too. Thanks to Tim Evans (#91477).
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
_gdk_event_button_generate() here, it would append the double- or
triple-click events too early, before the single-click event.
(inner_window_proc): If we got a single-click event, call
_gdk_event_button_generate() to perhaps append the double- or
triple-click event after that.
2002-08-01 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Remove gtk+.spec stuff, not needed in this (Win32

View File

@@ -1,3 +1,18 @@
2002-08-24 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
system handle Alt-Space, too. Thanks to Tim Evans (#91477).
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
_gdk_event_button_generate() here, it would append the double- or
triple-click events too early, before the single-click event.
(inner_window_proc): If we got a single-click event, call
_gdk_event_button_generate() to perhaps append the double- or
triple-click event after that.
2002-08-01 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Remove gtk+.spec stuff, not needed in this (Win32

View File

@@ -1,3 +1,18 @@
2002-08-24 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
system handle Alt-Space, too. Thanks to Tim Evans (#91477).
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
_gdk_event_button_generate() here, it would append the double- or
triple-click events too early, before the single-click event.
(inner_window_proc): If we got a single-click event, call
_gdk_event_button_generate() to perhaps append the double- or
triple-click event after that.
2002-08-01 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Remove gtk+.spec stuff, not needed in this (Win32

View File

@@ -247,6 +247,9 @@ inner_window_proc (HWND hWnd,
else
{
gdk_event_queue_append (eventp);
if (eventp->type == GDK_BUTTON_PRESS)
gdk_event_button_generate (eventp);
#if 1
/* Wake up WaitMessage */
PostMessage (NULL, gdk_ping_msg, 0, 0);
@@ -3559,6 +3562,14 @@ gdk_event_translate (GdkEvent *event,
|| xevent->wParam == VK_RETURN
|| xevent->wParam == VK_F4)
break;
/* Let the system handle Alt-Space, and ignore the WM_SYSCHAR too */
if (xevent->wParam == VK_SPACE)
{
ignore_WM_CHAR = TRUE;
break;
}
/* If posted without us having keyboard focus, ignore */
if (!(xevent->lParam & 0x20000000))
break;
@@ -3995,8 +4006,6 @@ gdk_event_translate (GdkEvent *event,
event->button.source = GDK_SOURCE_MOUSE;
event->button.deviceid = GDK_CORE_POINTER;
gdk_event_button_generate (event);
return_val = !GDK_DRAWABLE_DESTROYED (window);
break;