forked from pool/libwnck
Dominique Leuenberger
e300805086
Fixed bug boo#1204157 OBS-URL: https://build.opensuse.org/request/show/1035522 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libwnck?expand=0&rev=129
26 lines
714 B
Diff
26 lines
714 B
Diff
From: Alberts Muktupavels <alberts.muktupavels@gmail.com>
|
|
Date: 2022-09-20 15:40:22 +0300
|
|
Subject: Avoid segfault in invalidate_icons
|
|
References: boo#1204157 lp#1990263 glgo#GNOME/libwnck!46
|
|
Upstream: submitted
|
|
|
|
Screens variable won't be initialized if default icon sizes are
|
|
set/changed before using wnck_screen_get_default
|
|
|
|
---
|
|
libwnck/wnck-handle.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/libwnck/wnck-handle.c 2022-11-09 14:54:06.445579490 +0100
|
|
+++ b/libwnck/wnck-handle.c 2022-11-09 14:54:45.522267274 +0100
|
|
@@ -70,6 +70,9 @@
|
|
Display *xdisplay;
|
|
int i;
|
|
|
|
+ if (self->screens == NULL)
|
|
+ return;
|
|
+
|
|
xdisplay = _wnck_get_default_display ();
|
|
|
|
for (i = 0; i < ScreenCount (xdisplay); ++i)
|