From 76f890a26f86cd0010ae2dd0465fe1ecd771ca19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 12 Sep 2016 18:01:52 +0800 Subject: [PATCH] constraints: Don't early out of custom rule if window can't fit Still go through the rules. For example a tall menu might still be positioned better, and/or shrunk to a better size if applicable. https://bugzilla.gnome.org/show_bug.cgi?id=771297 --- src/core/constraints.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/constraints.c b/src/core/constraints.c index a9d983e04..e7dcacd84 100644 --- a/src/core/constraints.c +++ b/src/core/constraints.c @@ -784,10 +784,6 @@ constrain_custom_rule (MetaWindow *window, if (!placement_rule) return TRUE; - if (!meta_rectangle_could_fit_rect (&info->work_area_monitor, - &info->current)) - return TRUE; - meta_rectangle_intersect (&info->current, &info->work_area_monitor, &intersection);