archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libwnck3 / trunk / 0001-handle-avoid-segfault-in-invalidate_icons.patch
blobb22615761607ba493b37ffac8b6941455bd54ec7
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= <alberts.muktupavels@gmail.com>
3 Date: Tue, 20 Sep 2022 15:40:22 +0300
4 Subject: [PATCH] handle: avoid segfault in invalidate_icons
6 Screens variable won't be initialized if default icon sizes are
7 set/changed before using wnck_screen_get_default.
9 https://bugs.launchpad.net/ubuntu/+source/libwnck3/+bug/1990263
10 ---
11 libwnck/wnck-handle.c | 3 +++
12 1 file changed, 3 insertions(+)
14 diff --git a/libwnck/wnck-handle.c b/libwnck/wnck-handle.c
15 index e12ff8825045..8d5da45c8787 100644
16 --- a/libwnck/wnck-handle.c
17 +++ b/libwnck/wnck-handle.c
18 @@ -70,6 +70,9 @@ invalidate_icons (WnckHandle *self)
19 Display *xdisplay;
20 int i;
22 + if (self->screens == NULL)
23 + return;
25 xdisplay = _wnck_get_default_display ();
27 for (i = 0; i < ScreenCount (xdisplay); ++i)