bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19776: The hourglass


From: Lars Ingebrigtsen
Subject: bug#19776: The hourglass
Date: Mon, 25 Oct 2021 18:41:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]