[mutter] constraints: Don't early out of custom rule if window can't fit
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] constraints: Don't early out of custom rule if window can't fit
- Date: Mon, 21 Nov 2016 04:52:58 +0000 (UTC)
commit 2ed7ca5b6a5f499920986b660c7f15ae91574c87
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon Sep 12 18:01:52 2016 +0800
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 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/core/constraints.c b/src/core/constraints.c
index a9d983e..e7dcacd 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]