[gnome-panel/gtk3] Use gdk_x11_window_lookup_for_display() instead of gdk_window_lookup()
- From: Germán Poó Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/gtk3] Use gdk_x11_window_lookup_for_display() instead of gdk_window_lookup()
- Date: Thu, 30 Dec 2010 10:48:10 +0000 (UTC)
commit 85d692916af45a1805acb952fe48bfc0be7999b5
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Wed Dec 29 22:39:23 2010 +0100
Use gdk_x11_window_lookup_for_display() instead of gdk_window_lookup()
The latter has been removed in GDK 3, use the new X11-specific equivalent.
https://bugzilla.gnome.org/show_bug.cgi?id=627455
gnome-panel/panel-action-protocol.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gnome-panel/panel-action-protocol.c b/gnome-panel/panel-action-protocol.c
index ec1632f..b2c09f4 100644
--- a/gnome-panel/panel-action-protocol.c
+++ b/gnome-panel/panel-action-protocol.c
@@ -98,6 +98,7 @@ panel_action_protocol_filter (GdkXEvent *gdk_xevent,
{
GdkWindow *window;
GdkScreen *screen;
+ GdkDisplay *display;
XEvent *xevent = (XEvent *) gdk_xevent;
if (xevent->type != ClientMessage)
@@ -106,12 +107,12 @@ panel_action_protocol_filter (GdkXEvent *gdk_xevent,
if (xevent->xclient.message_type != atom_gnome_panel_action)
return GDK_FILTER_CONTINUE;
- window = gdk_window_lookup (xevent->xclient.window);
+ screen = gdk_event_get_screen (event);
+ display = gdk_screen_get_display (screen);
+ window = gdk_x11_window_lookup_for_display (display, xevent->xclient.window);
if (!window)
return GDK_FILTER_CONTINUE;
- screen = gdk_window_get_screen (window);
-
if (xevent->xclient.data.l [0] == atom_gnome_panel_action_main_menu)
panel_action_protocol_main_menu (screen, xevent->xclient.data.l [1]);
else if (xevent->xclient.data.l [0] == atom_gnome_panel_action_run_dialog)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]