From 61f4764effa8e320aa0d19316254531c9e32be80 Mon Sep 17 00:00:00 2001 From: killown Date: Sat, 9 Mar 2024 15:30:43 -0300 Subject: [PATCH 01/23] change overlay to workspace --- plugins/scale/scale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scale/scale.cpp b/plugins/scale/scale.cpp index 126ba19ed..8d9c81239 100644 --- a/plugins/scale/scale.cpp +++ b/plugins/scale/scale.cpp @@ -1343,7 +1343,7 @@ class wayfire_scale : public wf::per_output_plugin_instance_t, // trigger an action in scale last_selected_view = nullptr; - grab->grab_input(wf::scene::layer::OVERLAY); + grab->grab_input(wf::scene::layer::WORKSPACE); if (current_focus_view != wf::get_core().seat->get_active_view()) { wf::get_core().default_wm->focus_raise_view(current_focus_view); From 33be69825533fe54d459ca2b7a3092fbd72a963d Mon Sep 17 00:00:00 2001 From: killown Date: Sat, 9 Mar 2024 20:24:40 -0300 Subject: [PATCH 02/23] add overlay back only for master --- plugins/scale/scale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scale/scale.cpp b/plugins/scale/scale.cpp index 8d9c81239..126ba19ed 100644 --- a/plugins/scale/scale.cpp +++ b/plugins/scale/scale.cpp @@ -1343,7 +1343,7 @@ class wayfire_scale : public wf::per_output_plugin_instance_t, // trigger an action in scale last_selected_view = nullptr; - grab->grab_input(wf::scene::layer::WORKSPACE); + grab->grab_input(wf::scene::layer::OVERLAY); if (current_focus_view != wf::get_core().seat->get_active_view()) { wf::get_core().default_wm->focus_raise_view(current_focus_view); From 6322b82088c36a9b63432b96387ce9d80f49215c Mon Sep 17 00:00:00 2001 From: killown Date: Mon, 11 Mar 2024 07:55:18 -0300 Subject: [PATCH 03/23] new outer margin option --- metadata/scale.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/metadata/scale.xml b/metadata/scale.xml index 8f9d19d40..7bc85efb6 100644 --- a/metadata/scale.xml +++ b/metadata/scale.xml @@ -46,6 +46,12 @@ 50 0 + From a3b32a538d0770afae5c379e581f53efcd6231bd Mon Sep 17 00:00:00 2001 From: killown Date: Mon, 11 Mar 2024 10:36:03 -0300 Subject: [PATCH 07/23] added outer margin option --- plugins/scale/scale.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/scale/scale.cpp b/plugins/scale/scale.cpp index 6fb6ebf1f..721413fd8 100644 --- a/plugins/scale/scale.cpp +++ b/plugins/scale/scale.cpp @@ -920,9 +920,10 @@ class wayfire_scale : public wf::per_output_plugin_instance_t, filter_views(views); auto workarea = output->workarea->get_workarea(); - + workarea.x += outer_margin; workarea.y += outer_margin; - workarea.width -= outer_margin * 2; + workarea.width -= outer_margin * 2; + workarea.height -= outer_margin * 2; auto sorted_rows = view_sort(views); From 63e877b1f824197b74bd9bb520c8398ae22d5d46 Mon Sep 17 00:00:00 2001 From: killown Date: Mon, 11 Mar 2024 10:37:31 -0300 Subject: [PATCH 08/23] added outer margin option --- plugins/scale/scale.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/scale/scale.cpp b/plugins/scale/scale.cpp index 721413fd8..14ed68335 100644 --- a/plugins/scale/scale.cpp +++ b/plugins/scale/scale.cpp @@ -920,10 +920,9 @@ class wayfire_scale : public wf::per_output_plugin_instance_t, filter_views(views); auto workarea = output->workarea->get_workarea(); - workarea.x += outer_margin; workarea.y += outer_margin; + workarea.width -= outer_margin * 2; - workarea.height -= outer_margin * 2; auto sorted_rows = view_sort(views); From 549af033ad5f6bfc62323294deb656a057256e35 Mon Sep 17 00:00:00 2001 From: killown Date: Tue, 12 Mar 2024 20:44:08 -0300 Subject: [PATCH 09/23] set max height --- metadata/decoration.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/metadata/decoration.xml b/metadata/decoration.xml index 593cef860..b92c1e306 100644 --- a/metadata/decoration.xml +++ b/metadata/decoration.xml @@ -13,6 +13,7 @@ <_short>Title bar height <_long>Sets the height of the title bars in pixels. 30 + 100 -