summaryrefslogtreecommitdiff
path: root/src/gui_gtk_f.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_gtk_f.c')
-rw-r--r--src/gui_gtk_f.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui_gtk_f.c b/src/gui_gtk_f.c
index d88499e25..ccf54ece9 100644
--- a/src/gui_gtk_f.c
+++ b/src/gui_gtk_f.c
@@ -860,11 +860,9 @@ gtk_form_main_filter(GdkXEvent *gdk_xevent,
gtk_form_set_static_gravity(GdkWindow *window, gboolean use_static)
{
#ifdef HAVE_GTK2
- gboolean static_gravity_supported;
-
- static_gravity_supported = gdk_window_set_static_gravities(window,
- use_static);
- g_return_if_fail(static_gravity_supported);
+ /* We don't check if static gravity is actually supported, because it
+ * results in an annoying assertion error message. */
+ gdk_window_set_static_gravities(window, use_static);
#else
XSetWindowAttributes xattributes;