From 3f71b39c33e68e718b57d5027af75e7fdeb219a4 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 10 Mar 2021 09:13:25 -0500 Subject: [PATCH] Continuing to track down the issue with a crash on startup on certain window managers. Apparently certain calls can be made before the display is active. Likely this is not the final fix. --- VERSION | 2 +- functions.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index b6ff2cc..181cefc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.10.34 +3.10.35 diff --git a/functions.c b/functions.c index 3603466..b193f50 100644 --- a/functions.c +++ b/functions.c @@ -763,7 +763,8 @@ XPoint UGetCursor() u_int nullui; XPoint newpos; - if (areawin->area == NULL) { + /* Apparently this routine can get called before the display is valid */ + if ((areawin->area == NULL) || (dpy == NULL)) { newpos.x = newpos.y = 0; return newpos; } -- 2.11.4.GIT