diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/weston/0002-desktop-shell-Remove-no-op-de-activation-of-the-xdg-.patch')
-rw-r--r-- | meta/recipes-graphics/wayland/weston/0002-desktop-shell-Remove-no-op-de-activation-of-the-xdg-.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston/0002-desktop-shell-Remove-no-op-de-activation-of-the-xdg-.patch b/meta/recipes-graphics/wayland/weston/0002-desktop-shell-Remove-no-op-de-activation-of-the-xdg-.patch new file mode 100644 index 0000000000..fb36d3817a --- /dev/null +++ b/meta/recipes-graphics/wayland/weston/0002-desktop-shell-Remove-no-op-de-activation-of-the-xdg-.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 5c74a0640e873694bf60a88eceb21f664cb4b8f7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Marius Vlad <marius.vlad@collabora.com> | ||
3 | Date: Fri, 5 Mar 2021 20:03:49 +0200 | ||
4 | Subject: [PATCH 2/5] desktop-shell: Remove no-op de-activation of the xdg | ||
5 | top-level surface | ||
6 | |||
7 | The shsurf is calloc'ed so the surface count is always 0. Not only | ||
8 | that but the surface is not set as active by default, so there's no | ||
9 | need to de-activate it. | ||
10 | |||
11 | Upstream-Status: Backport [05bef4c18a3e82376a46a4a28d978389c4c0fd0f] | ||
12 | Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | ||
13 | --- | ||
14 | desktop-shell/shell.c | 2 -- | ||
15 | 1 file changed, 2 deletions(-) | ||
16 | |||
17 | diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c | ||
18 | index 442a625f..3791be25 100644 | ||
19 | --- a/desktop-shell/shell.c | ||
20 | +++ b/desktop-shell/shell.c | ||
21 | @@ -2427,8 +2427,6 @@ desktop_surface_added(struct weston_desktop_surface *desktop_surface, | ||
22 | wl_list_init(&shsurf->children_link); | ||
23 | |||
24 | weston_desktop_surface_set_user_data(desktop_surface, shsurf); | ||
25 | - weston_desktop_surface_set_activated(desktop_surface, | ||
26 | - shsurf->focus_count > 0); | ||
27 | } | ||
28 | |||
29 | static void | ||
30 | -- | ||
31 | 2.34.1 | ||
32 | |||