forked from QubesOS/qubes-desktop-linux-xfce4-xfwm4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0004-Don-t-reset-client-struct.patch
46 lines (40 loc) · 1.4 KB
/
0004-Don-t-reset-client-struct.patch
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From 1d1d35c342c5defe4acb3f74c56358d67b078d83 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?=
Date: Sat, 16 May 2020 11:44:28 +0200
Subject: [PATCH] Don't reset client struct
Do not reset client->*_timeout_id fields in clientFrame(). The client struct is
allocated with g_new0(), which fill it with 0 already. But at this point there
may be some data already - especially after Qubes frames patch calling
clientUpdateName() earlier.
Authors:
@marmarek
Original work done in:
- QubesOS/qubes-desktop-linux-xfce4
- QubesOS/qubes-desktop-linux-xfce4-xfwm4
---
src/client.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/src/client.c b/src/client.c
index b9b12b96c..ac9620f2c 100644
--- a/src/client.c
+++ b/src/client.c
@@ -1853,17 +1853,6 @@ clientFrame (DisplayInfo *display_info, Window w, gboolean recapture)
FLAG_SET (c->xfwm_flags, XFWM_FLAG_OPACITY_LOCKED);
}
- /* Timout for asynchronous icon update */
- c->icon_timeout_id = 0;
- /* Timout for asynchronous frame update */
- c->frame_timeout_id = 0;
- /* Timeout for blinking on urgency */
- c->blink_timeout_id = 0;
- /* Ping timeout */
- c->ping_timeout_id = 0;
- /* Ping timeout */
- c->ping_time = 0;
-
c->class.res_name = NULL;
c->class.res_class = NULL;
XGetClassHint (display_info->dpy, w, &c->class);
--
2.25.4