[gtk+/client-side-windows: 81/284] Handle GDK_WA_CURSOR in non-native window creation
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 81/284] Handle GDK_WA_CURSOR in non-native window creation
- Date: Thu, 2 Apr 2009 14:06:32 -0400 (EDT)
commit d6ecaca1663df4a7b94bc0463b78ea4a8a9c7ca0
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jan 15 19:13:06 2009 +0100
Handle GDK_WA_CURSOR in non-native window creation
---
gdk/gdkwindow.c | 4 ++++
gdk/x11/gdkwindow-x11.c | 4 ----
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 3b4bfc0..1555e4a 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -882,6 +882,10 @@ gdk_window_new (GdkWindow *parent,
private->redirect = private->parent->redirect;
}
+ gdk_window_set_cursor (window, ((attributes_mask & GDK_WA_CURSOR) ?
+ (attributes->cursor) :
+ NULL));
+
return window;
}
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index b3b6846..4cec645 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -763,10 +763,6 @@ _gdk_window_impl_new (GdkWindow *window,
g_object_ref (window);
_gdk_xid_table_insert (screen_x11->display, &draw_impl->xid, window);
- gdk_window_set_cursor (window, ((attributes_mask & GDK_WA_CURSOR) ?
- (attributes->cursor) :
- NULL));
-
switch (GDK_WINDOW_TYPE (private))
{
case GDK_WINDOW_DIALOG:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]