gtk+ r21756 - in trunk: . gdk/win32
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21756 - in trunk: . gdk/win32
- Date: Mon, 3 Nov 2008 22:38:29 +0000 (UTC)
Author: tml
Date: Mon Nov 3 22:38:29 2008
New Revision: 21756
URL: http://svn.gnome.org/viewvc/gtk+?rev=21756&view=rev
Log:
2008-11-04 Tor Lillqvist <tml novell com>
Bug 557212 - Problem with which window gains focus and is visible
* gdk/win32/gdkevents-win32.c (ensure_stacking_on_activate_app):
Only do the restacking for the active window of the
application. Seems to fix the problem.
(gdk_event_translate): Only call ensure_stacking_on_activate_app()
when the application is being activated, not deactivated.
Modified:
trunk/ChangeLog
trunk/gdk/win32/gdkevents-win32.c
Modified: trunk/gdk/win32/gdkevents-win32.c
==============================================================================
--- trunk/gdk/win32/gdkevents-win32.c (original)
+++ trunk/gdk/win32/gdkevents-win32.c Mon Nov 3 22:38:29 2008
@@ -2214,12 +2214,12 @@
}
if (IsWindowVisible (msg->hwnd) &&
- gdk_win32_handle_table_lookup (GetActiveWindow ()))
+ msg->hwnd == GetActiveWindow ())
{
- /* This window is not a transient-type window and this or some
- * other window in this app is the active window. Make sure this
- * window is as visible as possible, just below the lowest
- * transient-type window of this app.
+ /* This window is not a transient-type window and it is the
+ * activated window. Make sure this window is as visible as
+ * possible, just below the lowest transient-type window of this
+ * app.
*/
HWND rover;
@@ -3680,7 +3680,7 @@
msg->wParam ? "YES" : "NO",
(gint64) msg->lParam));
- if (GDK_WINDOW_IS_MAPPED (window))
+ if (msg->wParam && GDK_WINDOW_IS_MAPPED (window))
ensure_stacking_on_activate_app (msg, window);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]