From d558a235eac13734a34a67953ac9ef130b14e595 Mon Sep 17 00:00:00 2001 From: Kristen McWilliam <9575627+Merrit@users.noreply.github.com> Date: Sat, 27 Aug 2022 01:35:52 -0400 Subject: [PATCH] Linux: fix bottom edge resizing (#209) --- linux/window_manager_plugin.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux/window_manager_plugin.cc b/linux/window_manager_plugin.cc index f9976739..033b7176 100644 --- a/linux/window_manager_plugin.cc +++ b/linux/window_manager_plugin.cc @@ -548,11 +548,11 @@ static FlMethodResponse* start_resizing(WindowManagerPlugin* self, gdk_window_edge = GDK_WINDOW_EDGE_WEST; } else if (strcmp(resize_edge, "right") == 0) { gdk_window_edge = GDK_WINDOW_EDGE_EAST; - } else if (strcmp(resize_edge, "bottomLeft")) { + } else if (strcmp(resize_edge, "bottomLeft") == 0) { gdk_window_edge = GDK_WINDOW_EDGE_SOUTH_WEST; - } else if (strcmp(resize_edge, "bottom")) { + } else if (strcmp(resize_edge, "bottom") == 0) { gdk_window_edge = GDK_WINDOW_EDGE_SOUTH; - } else if (strcmp(resize_edge, "bottomRight")) { + } else if (strcmp(resize_edge, "bottomRight") == 0) { gdk_window_edge = GDK_WINDOW_EDGE_SOUTH_EAST; }