From 94c3df23bfe40a7e57ef7ba556baef8460ce139b Mon Sep 17 00:00:00 2001 From: moonie <67006455+Kim-Dewelski@users.noreply.github.com> Date: Thu, 28 Dec 2023 10:45:42 +0100 Subject: [PATCH] fixed vertical window ordering --- src/focus-change.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/focus-change.cpp b/src/focus-change.cpp index 93724c4..0ef8b14 100644 --- a/src/focus-change.cpp +++ b/src/focus-change.cpp @@ -236,11 +236,11 @@ class wayfire_focus_change_t : public wf::plugin_interface_t switch (orientation) { case orientation_t::UP: - distance = cy; + distance = pos.height - cy; break; case orientation_t::DOWN: - distance = pos.height - cy; + distance = cy; break; case orientation_t::RIGHT: