From 31b681948c5492aab11bee1dfe4f6642447ab50a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 23 Aug 2004 15:12:04 +0000 Subject: [PATCH] Support the latest EWMH additions to the _NET_ACTIVE_WINDOW client message 2004-08-23 Matthias Clasen * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Support the latest EWMH additions to the _NET_ACTIVE_WINDOW client message format. (#150668, Elijah Newren) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gdk/x11/gdkwindow-x11.c | 6 +++--- 5 files changed, 27 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 25cc01c22b..be20df84d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-23 Matthias Clasen + + * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Support the latest + EWMH additions to the _NET_ACTIVE_WINDOW client message + format. (#150668, Elijah Newren) + Mon Aug 23 01:17:59 2004 Matthias Clasen * gdk/gdkrgb.c (gdk_rgb_xpixel_from_rgb_internal): Set unused diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 25cc01c22b..be20df84d2 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2004-08-23 Matthias Clasen + + * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Support the latest + EWMH additions to the _NET_ACTIVE_WINDOW client message + format. (#150668, Elijah Newren) + Mon Aug 23 01:17:59 2004 Matthias Clasen * gdk/gdkrgb.c (gdk_rgb_xpixel_from_rgb_internal): Set unused diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 25cc01c22b..be20df84d2 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2004-08-23 Matthias Clasen + + * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Support the latest + EWMH additions to the _NET_ACTIVE_WINDOW client message + format. (#150668, Elijah Newren) + Mon Aug 23 01:17:59 2004 Matthias Clasen * gdk/gdkrgb.c (gdk_rgb_xpixel_from_rgb_internal): Set unused diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 25cc01c22b..be20df84d2 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2004-08-23 Matthias Clasen + + * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Support the latest + EWMH additions to the _NET_ACTIVE_WINDOW client message + format. (#150668, Elijah Newren) + Mon Aug 23 01:17:59 2004 Matthias Clasen * gdk/gdkrgb.c (gdk_rgb_xpixel_from_rgb_internal): Set unused diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 822701420b..36c5f1166b 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -2014,9 +2014,9 @@ gdk_window_focus (GdkWindow *window, xev.xclient.message_type = gdk_x11_get_xatom_by_name_for_display (display, "_NET_ACTIVE_WINDOW"); xev.xclient.format = 32; - xev.xclient.data.l[0] = 0; - xev.xclient.data.l[1] = 0; - xev.xclient.data.l[2] = 0; + xev.xclient.data.l[0] = 1; /* requestor type; we're an app */ + xev.xclient.data.l[1] = timestamp; + xev.xclient.data.l[2] = None; /* currently active window */ xev.xclient.data.l[3] = 0; xev.xclient.data.l[4] = 0;