[gtk+] wayland: Handle request for selection atoms when there's no selection
- From: Kristian HÃgsberg <krh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Handle request for selection atoms when there's no selection
- Date: Tue, 17 Jan 2012 16:11:07 +0000 (UTC)
commit b9509ec15d3eb95e4598696a697868fcc314bdb3
Author: Kristian HÃgsberg <krh bitplanet net>
Date: Tue Jan 17 11:10:30 2012 -0500
wayland: Handle request for selection atoms when there's no selection
gdk/wayland/gdkdevice-wayland.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 09ec304..a749c72 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]