aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-flutter/recipes-graphics/toyota/files/0002-activation_area-Allow-x-and-y-values-be-zero-for-the.patch
blob: f0cf9ddb384746d65d537b7b2e39e76088ff3e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 641ca7ca26c1bfc11e7d0c0f30b731f53467bf1f Mon Sep 17 00:00:00 2001
From: Marius Vlad <marius.vlad@collabora.com>
Date: Thu, 28 Dec 2023 20:28:12 +0200
Subject: [PATCH 2/2] activation_area: Allow x and y values be zero for the
 activation area

Bug-AGL: SPEC-5038
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
---
 shell/wayland/window.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/wayland/window.cc b/shell/wayland/window.cc
index f816e58..929b9af 100644
--- a/shell/wayland/window.cc
+++ b/shell/wayland/window.cc
@@ -100,7 +100,7 @@ WaylandWindow::WaylandWindow(size_t index,
       break;
     case WINDOW_BG:
       m_display->AglShellDoBackground(m_base_surface, 0);
-      if (m_activation_area.x > 0 && m_activation_area.y > 0)
+      if (m_activation_area.x >= 0 && m_activation_area.y >= 0)
         m_display->AglShellDoSetupActivationArea(
             m_activation_area.x, m_activation_area.y, m_activation_area.width,
             m_activation_area.height, 0);
-- 
2.35.1