meta-agl-flutter: rework agl-image-flutter
[AGL/meta-agl-devel.git] / meta-agl-flutter / recipes-graphics / toyota / files / 0003-activation_area-Remove-the-implicit-width-height-swa.patch
1 From b247f63441f75c47cebd6edd00ecc0c5f94728b6 Mon Sep 17 00:00:00 2001
2 From: Marius Vlad <marius.vlad@collabora.com>
3 Date: Tue, 2 Jan 2024 15:00:13 +0200
4 Subject: [PATCH 3/3] activation_area: Remove the implicit width/height swap
5
6 This does more harm than being useful so remove it.
7
8 Bug-AGL: SPEC-5038
9 Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
10 ---
11  shell/wayland/display.cc | 6 ------
12  1 file changed, 6 deletions(-)
13
14 diff --git a/shell/wayland/display.cc b/shell/wayland/display.cc
15 index 0b97954..9452dbf 100644
16 --- a/shell/wayland/display.cc
17 +++ b/shell/wayland/display.cc
18 @@ -863,12 +863,6 @@ void Display::AglShellDoSetupActivationArea(uint32_t x,
19    if (!m_agl.shell)
20      return;
21  
22 -  if (m_all_outputs[index]->transform == WL_OUTPUT_TRANSFORM_90) {
23 -    uint32_t tmp_width = width;
24 -    width = height;
25 -    height = tmp_width;
26 -  }
27 -
28    SPDLOG_DEBUG("Using custom rectangle [{}x{}+{}x{}] for activation", width,
29                 height, x, y);
30  
31 -- 
32 2.35.1
33