From ee21fca0fbfc55a29388f836779cef95542cb655 Mon Sep 17 00:00:00 2001 From: "Lukas F. Hartmann" Date: Fri, 14 Apr 2023 22:03:30 +0200 Subject: [PATCH] scale: include all views visible on workspace --- plugins/scale/scale.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/scale/scale.cpp b/plugins/scale/scale.cpp index 8baeeee09..783e9429d 100644 --- a/plugins/scale/scale.cpp +++ b/plugins/scale/scale.cpp @@ -762,10 +762,10 @@ class wayfire_scale : public wf::per_output_plugin_instance_t, auto vg = view->get_wm_geometry(); auto og = output->get_relative_geometry(); + wf::region_t vr{vg}; wf::region_t wr{og}; - wf::point_t center{vg.x + vg.width / 2, vg.y + vg.height / 2}; - if (wr.contains_point(center)) + if (!(wr & vr).empty()) { views.push_back(view); }