diff --git a/src/x11/window-props.c b/src/x11/window-props.c index 786524bf8..8836a1dd1 100644 --- a/src/x11/window-props.c +++ b/src/x11/window-props.c @@ -338,16 +338,6 @@ reload_icon_geometry (MetaWindow *window, } } -static gboolean -gtk_border_equal (GtkBorder *a, - GtkBorder *b) -{ - return (a->left == b->left && - a->right == b->right && - a->top == b->top && - a->bottom == b->bottom); -} - static void meta_window_set_custom_frame_extents (MetaWindow *window, GtkBorder *extents, @@ -355,7 +345,8 @@ meta_window_set_custom_frame_extents (MetaWindow *window, { if (extents) { - if (window->has_custom_frame_extents && gtk_border_equal (&window->custom_frame_extents, extents)) + if (window->has_custom_frame_extents && + memcmp (&window->custom_frame_extents, extents, sizeof (GtkBorder)) == 0) return; window->has_custom_frame_extents = TRUE;