Subject: Re: bug#19776: The hourglass

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 25 Oct 2021 18:41:10 +0200

When not using the timerfd stuff, the hourglass timer is triggered
correctly even when busy-looping like this:

(while t)

But it's not actually displayed until there's a keyboard/mouse event, or
redisplay is triggered otherwise.  So it's this code:

static void
x_show_hourglass (struct frame *f)
{
[...]
             x->hourglass_window = XCreateWindow
               (dpy, parent, 0, 0, 32000, 32000, 0, 0,
                InputOnly, CopyFromParent, mask, &attrs);
           }

         XMapRaised (dpy, x->hourglass_window);
         XFlush (dpy);
       }
    }
}

If I stick a call to Fredisplay in there, then it'll actually display
the hourglass, but that seems rather heavy-handed.  What's the proper
way to trigger the redisplay here?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no