summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-01-17 11:10:30 -0500
committerKristian Høgsberg <krh@bitplanet.net>2012-01-17 11:10:59 -0500
commitb9509ec15d3eb95e4598696a697868fcc314bdb3 (patch)
tree8cb252f6c588617d7f947fbbf61bc77781a5b136 /gdk
parent85fcd50b3f33cb811f4ba79a53b3a6b29054c721 (diff)
downloadgtk+-b9509ec15d3eb95e4598696a697868fcc314bdb3.tar.gz
wayland: Handle request for selection atoms when there's no selection
Diffstat (limited to 'gdk')
-rw-r--r--gdk/wayland/gdkdevice-wayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 09ec304355..a749c72d29 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1019,7 +1019,7 @@ gdk_wayland_device_get_selection_type_atoms (GdkDevice *gdk_device,
device = GDK_DEVICE_CORE (gdk_device)->device;
- if (device->selection_offer->types->len == 0)
+ if (!device->selection_offer || device->selection_offer->types->len == 0)
{
*atoms_out = NULL;
return 0;