Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37533633
en ru br
ALT Linux repos
S:2.0.1-alt1
5.0: 1.0-alt0.alpha2

Group :: Graphics
RPM: geeqie

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: geeqie-1.6-up-wayland.patch
Download


commit 8768ab3d7588019ea07a440a9cfd12679bc07d65
Author: Colin Clark <colin.clark@cclark.uk>
Date:   Thu Dec 10 16:43:33 2020 +0000
    Ref #539: Run time check on GDK display backend (2)
    
    https://github.com/BestImageViewer/geeqie/issues/829
    
    Include a run time check to determine which backend is being used.
    There was a seg. fault when Wayland was being used.
diff --git a/src/layout.c b/src/layout.c
index 2899d544..685e2005 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -2410,8 +2410,15 @@ void layout_sync_options_with_current_state(LayoutWindow *lw)
 
 #ifdef GDK_WINDOWING_X11
 #if GTK_CHECK_VERSION(3,10,0)
-	window = gtk_widget_get_window(GTK_WIDGET(lw->window));
-	lw->options.workspace = gdk_x11_window_get_desktop(window);
+	GdkDisplay *display;
+
+	display = gdk_display_get_default();
+
+	if (GDK_IS_X11_DISPLAY(display))
+		{
+		window = gtk_widget_get_window(GTK_WIDGET(lw->window));
+		lw->options.workspace = gdk_x11_window_get_desktop(window);
+		}
 #endif
 #endif
 	return;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin