diff --git a/src/panel/widgets/window-list/toplevel.cpp b/src/panel/widgets/window-list/toplevel.cpp index 04ff7b36..12d6cfb2 100644 --- a/src/panel/widgets/window-list/toplevel.cpp +++ b/src/panel/widgets/window-list/toplevel.cpp @@ -147,7 +147,7 @@ class WayfireToplevel::impl } ignore_next_click = false; - } else if (butt == 2) + } else if ((butt == 2) && middle_click_close.value()) { zwlr_foreign_toplevel_handle_v1_close(handle); } else if (butt == 3)