[mutter] tiling: Limit tiling to landscape orientation
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tiling: Limit tiling to landscape orientation
- Date: Fri, 24 Sep 2010 15:47:42 +0000 (UTC)
commit a2e4789b3e234afb924be3f4e0f77dbfcb832e26
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Sep 24 13:23:18 2010 +0200
tiling: Limit tiling to landscape orientation
Tiling is arguably only useful for monitors in landscape orientation,
so disable it when the current monitor is in portrait orientation.
src/core/window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 9db0131..19a3f62 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3202,6 +3202,10 @@ meta_window_can_tile (MetaWindow *window)
monitor = meta_screen_get_current_monitor (window->screen);
meta_window_get_work_area_for_monitor (window, monitor->number, &tile_area);
+ /* Do not allow tiling in portrait orientation */
+ if (tile_area.height > tile_area.width)
+ return FALSE;
+
tile_area.width /= 2;
if (window->frame)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]