On WM_MOUSEMOVE, don't check if this process owns the active window. This
2005-03-18 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_MOUSEMOVE, don't check if this process owns the active window. This makes cross-application widget embedding work better. On WM_MOVE, don't bother checking for window visibility. * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove unused variables. Add some casts to silence gcc.
This commit is contained in:
committed by
Tor Lillqvist
parent
368f15ca59
commit
e4515f4dba
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2005-03-18 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* gdk/win32/gdkevents-win32.c (gdk_event_translate): On
|
||||||
|
WM_MOUSEMOVE, don't check if this process owns the active
|
||||||
|
window. This makes cross-application widget embedding work better.
|
||||||
|
On WM_MOVE, don't bother checking for window visibility.
|
||||||
|
|
||||||
|
* gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
|
||||||
|
unused variables. Add some casts to silence gcc.
|
||||||
|
|
||||||
2005-02-24 Owen Taylor <otaylor@redhat.com>
|
2005-02-24 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkwindow.c: Use cairo_set_device_offset().
|
* gdk/gdkwindow.c: Use cairo_set_device_offset().
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
2005-03-18 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* gdk/win32/gdkevents-win32.c (gdk_event_translate): On
|
||||||
|
WM_MOUSEMOVE, don't check if this process owns the active
|
||||||
|
window. This makes cross-application widget embedding work better.
|
||||||
|
On WM_MOVE, don't bother checking for window visibility.
|
||||||
|
|
||||||
|
* gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
|
||||||
|
unused variables. Add some casts to silence gcc.
|
||||||
|
|
||||||
2005-02-24 Owen Taylor <otaylor@redhat.com>
|
2005-02-24 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkwindow.c: Use cairo_set_device_offset().
|
* gdk/gdkwindow.c: Use cairo_set_device_offset().
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
2005-03-18 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* gdk/win32/gdkevents-win32.c (gdk_event_translate): On
|
||||||
|
WM_MOUSEMOVE, don't check if this process owns the active
|
||||||
|
window. This makes cross-application widget embedding work better.
|
||||||
|
On WM_MOVE, don't bother checking for window visibility.
|
||||||
|
|
||||||
|
* gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
|
||||||
|
unused variables. Add some casts to silence gcc.
|
||||||
|
|
||||||
2005-02-24 Owen Taylor <otaylor@redhat.com>
|
2005-02-24 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkwindow.c: Use cairo_set_device_offset().
|
* gdk/gdkwindow.c: Use cairo_set_device_offset().
|
||||||
|
|||||||
@ -2138,8 +2138,6 @@ gdk_event_translate (GdkDisplay *display,
|
|||||||
MSG *msg,
|
MSG *msg,
|
||||||
gint *ret_valp)
|
gint *ret_valp)
|
||||||
{
|
{
|
||||||
DWORD pidActWin;
|
|
||||||
DWORD pidThis;
|
|
||||||
RECT rect, *drag, orig_drag;
|
RECT rect, *drag, orig_drag;
|
||||||
POINT point;
|
POINT point;
|
||||||
MINMAXINFO *mmi;
|
MINMAXINFO *mmi;
|
||||||
@ -2705,12 +2703,6 @@ gdk_event_translate (GdkDisplay *display,
|
|||||||
msg->wParam,
|
msg->wParam,
|
||||||
GET_X_LPARAM (msg->lParam), GET_Y_LPARAM (msg->lParam)));
|
GET_X_LPARAM (msg->lParam), GET_Y_LPARAM (msg->lParam)));
|
||||||
|
|
||||||
/* HB: only process mouse move messages if we own the active window. */
|
|
||||||
GetWindowThreadProcessId (GetActiveWindow (), &pidActWin);
|
|
||||||
GetWindowThreadProcessId (msg->hwnd, &pidThis);
|
|
||||||
if (pidActWin != pidThis)
|
|
||||||
break;
|
|
||||||
|
|
||||||
assign_object (&window, find_window_for_mouse_event (window, msg));
|
assign_object (&window, find_window_for_mouse_event (window, msg));
|
||||||
|
|
||||||
if (p_grab_window != NULL)
|
if (p_grab_window != NULL)
|
||||||
@ -3295,8 +3287,7 @@ gdk_event_translate (GdkDisplay *display,
|
|||||||
GET_X_LPARAM (msg->lParam), GET_Y_LPARAM (msg->lParam)));
|
GET_X_LPARAM (msg->lParam), GET_Y_LPARAM (msg->lParam)));
|
||||||
|
|
||||||
if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD &&
|
if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD &&
|
||||||
!IsIconic (msg->hwnd) &&
|
!IsIconic (msg->hwnd))
|
||||||
IsWindowVisible (msg->hwnd))
|
|
||||||
{
|
{
|
||||||
if (!GDK_WINDOW_DESTROYED (window))
|
if (!GDK_WINDOW_DESTROYED (window))
|
||||||
handle_configure_event (msg, window);
|
handle_configure_event (msg, window);
|
||||||
|
|||||||
@ -36,19 +36,6 @@
|
|||||||
#include "gdki18n.h"
|
#include "gdki18n.h"
|
||||||
#include "gdkwin32.h"
|
#include "gdkwin32.h"
|
||||||
|
|
||||||
/*
|
|
||||||
*--------------------------------------------------------------
|
|
||||||
* gdk_set_locale
|
|
||||||
*
|
|
||||||
* Arguments:
|
|
||||||
*
|
|
||||||
* Results:
|
|
||||||
*
|
|
||||||
* Side effects:
|
|
||||||
*
|
|
||||||
*--------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
gchar*
|
gchar*
|
||||||
gdk_set_locale (void)
|
gdk_set_locale (void)
|
||||||
{
|
{
|
||||||
@ -61,12 +48,10 @@ gdk_set_locale (void)
|
|||||||
gchar *
|
gchar *
|
||||||
gdk_wcstombs (const GdkWChar *src)
|
gdk_wcstombs (const GdkWChar *src)
|
||||||
{
|
{
|
||||||
gchar *utf8;
|
|
||||||
gchar *retval;
|
|
||||||
const gchar *charset;
|
const gchar *charset;
|
||||||
|
|
||||||
g_get_charset (&charset);
|
g_get_charset (&charset);
|
||||||
return g_convert (src, -1, charset, "UCS-4LE", NULL, NULL, NULL);
|
return g_convert ((char *) src, -1, charset, "UCS-4LE", NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
@ -81,7 +66,7 @@ gdk_mbstowcs (GdkWChar *dest,
|
|||||||
const gchar *charset;
|
const gchar *charset;
|
||||||
|
|
||||||
g_get_charset (&charset);
|
g_get_charset (&charset);
|
||||||
ucs4 = g_convert (src, -1, "UCS-4LE", charset, NULL, &nwritten, NULL);
|
ucs4 = (gunichar *) g_convert (src, -1, "UCS-4LE", charset, NULL, &nwritten, NULL);
|
||||||
n_ucs4 = nwritten * sizeof (GdkWChar);
|
n_ucs4 = nwritten * sizeof (GdkWChar);
|
||||||
|
|
||||||
retval = MIN (dest_max, n_ucs4);
|
retval = MIN (dest_max, n_ucs4);
|
||||||
|
|||||||
Reference in New Issue
Block a user