[gnome-shell-extensions/ws-thumb-fixes: 1/4] window-list: Account for monitor offset in window previews
- From: Florian Müllner <fmuellner src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-shell-extensions/ws-thumb-fixes: 1/4] window-list: Account for monitor offset in window previews
 
- Date: Thu, 19 Nov 2020 06:00:45 +0000 (UTC)
 
commit 14ed177a5bda095961cc4b60d6917dd90d0fd6b9
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Oct 21 20:22:32 2020 +0200
    window-list: Account for monitor offset in window previews
 extensions/window-list/workspaceIndicator.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/window-list/workspaceIndicator.js b/extensions/window-list/workspaceIndicator.js
index 698cc9d..3dbfb0c 100644
--- a/extensions/window-list/workspaceIndicator.js
+++ b/extensions/window-list/workspaceIndicator.js
@@ -91,8 +91,8 @@ class WorkspaceLayout extends Clutter.LayoutManager {
                 Math.round(Math.min(frameRect.width, workArea.width) * hscale),
                 Math.round(Math.min(frameRect.height, workArea.height) * vscale));
             childBox.set_origin(
-                Math.round(frameRect.x * hscale),
-                Math.round(frameRect.y * vscale));
+                Math.round((frameRect.x - workArea.x) * hscale),
+                Math.round((frameRect.y - workArea.y)  * vscale));
             child.allocate(childBox);
         }
     }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]