]> Pileus Git - ~andy/gtk/commitdiff
On WM_MOUSEMOVE, don't check if this process owns the active window. This
authorTor Lillqvist <tml@novell.com>
Fri, 18 Mar 2005 10:21:51 +0000 (10:21 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Fri, 18 Mar 2005 10:21:51 +0000 (10:21 +0000)
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.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gdk/win32/gdkevents-win32.c
gdk/win32/gdkim-win32.c

index 4db2a458627e6dd687ae432783b21c9fa71527b8..f13aefd4039f8774f8ff1e42af314727dba42a33 100644 (file)
--- a/ChangeLog
+++ b/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>
 
        * gdk/gdkwindow.c: Use cairo_set_device_offset().
index 4db2a458627e6dd687ae432783b21c9fa71527b8..f13aefd4039f8774f8ff1e42af314727dba42a33 100644 (file)
@@ -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>
 
        * gdk/gdkwindow.c: Use cairo_set_device_offset().
index 4db2a458627e6dd687ae432783b21c9fa71527b8..f13aefd4039f8774f8ff1e42af314727dba42a33 100644 (file)
@@ -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>
 
        * gdk/gdkwindow.c: Use cairo_set_device_offset().
index 95fcb1fba7b8d47d42e8977b9a54ce7ba517332b..ed214cb8982314f2ee1b15e754eddc1d658b76d9 100644 (file)
@@ -2138,8 +2138,6 @@ gdk_event_translate (GdkDisplay *display,
                     MSG        *msg,
                     gint       *ret_valp)
 {
-  DWORD pidActWin;
-  DWORD pidThis;
   RECT rect, *drag, orig_drag;
   POINT point;
   MINMAXINFO *mmi;
@@ -2705,12 +2703,6 @@ gdk_event_translate (GdkDisplay *display,
                         msg->wParam,
                         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));
 
       if (p_grab_window != NULL)
@@ -3295,8 +3287,7 @@ gdk_event_translate (GdkDisplay *display,
                                 GET_X_LPARAM (msg->lParam), GET_Y_LPARAM (msg->lParam)));
 
       if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD &&
-         !IsIconic (msg->hwnd) &&
-         IsWindowVisible (msg->hwnd))
+         !IsIconic (msg->hwnd))
        {
          if (!GDK_WINDOW_DESTROYED (window))
            handle_configure_event (msg, window);
index aeb29bf7ddd419ff6651a72c2f5a6292632a9d12..b709653fd6b52343e9331a6b96635272eac4c866 100644 (file)
 #include "gdki18n.h"
 #include "gdkwin32.h"
 
-/*
- *--------------------------------------------------------------
- * gdk_set_locale
- *
- * Arguments:
- *
- * Results:
- *
- * Side effects:
- *
- *--------------------------------------------------------------
- */
-
 gchar*
 gdk_set_locale (void)
 {
@@ -61,12 +48,10 @@ gdk_set_locale (void)
 gchar *
 gdk_wcstombs (const GdkWChar *src)
 {
-  gchar *utf8;
-  gchar *retval;
   const gchar *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
@@ -81,7 +66,7 @@ gdk_mbstowcs (GdkWChar    *dest,
   const gchar *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);
 
   retval = MIN (dest_max, n_ucs4);