[gtk+] gtkwindow: Use gdk_cursor_new_for_display
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkwindow: Use gdk_cursor_new_for_display
- Date: Tue, 28 Oct 2014 04:23:08 +0000 (UTC)
commit 5f980cd8ded9cc36148862cb39c636e6a0d2f0c6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Oct 27 21:21:00 2014 -0700
gtkwindow: Use gdk_cursor_new_for_display
Otherwise, this crashes the inspector, since it now uses multi-display
technology, and on Wayland, resources like the cursor are client-private.
gtk/gtkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 08afd8f..0b0365f 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6991,7 +6991,7 @@ gtk_window_realize (GtkWidget *widget)
for (i = 0; i < 8; i++)
{
- attributes.cursor = gdk_cursor_new (cursor_type[i]);
+ attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget), cursor_type[i]);
priv->border_window[i] = gdk_window_new (gdk_window, &attributes, attributes_mask);
g_object_unref (attributes.cursor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]