[gtk+] Revert "wayland: fix filechooser crash"
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Revert "wayland: fix filechooser crash"
- Date: Wed, 23 Aug 2017 14:40:41 +0000 (UTC)
commit 44e1c19b42c3fd760d7857da19701941f840fb00
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 23 10:40:12 2017 -0400
Revert "wayland: fix filechooser crash"
This reverts commit bd033165e52469845ac6f69c4fa9ac9b897f9bcc.
The function already had an early exit, no need for this check.
gdk/wayland/gdkwindow-wayland.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 3da3a9d..1b01534 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1177,8 +1177,7 @@ gdk_wayland_window_sync_opaque_region (GdkWindow *window)
wl_region = wl_region_from_cairo_region (GDK_WAYLAND_DISPLAY (gdk_window_get_display (window)),
impl->opaque_region);
- if (impl->display_server.wl_surface)
- wl_surface_set_opaque_region (impl->display_server.wl_surface, wl_region);
+ wl_surface_set_opaque_region (impl->display_server.wl_surface, wl_region);
if (wl_region != NULL)
wl_region_destroy (wl_region);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]