[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make-pointer-invisible on Windows
From: |
Eli Zaretskii |
Subject: |
Re: make-pointer-invisible on Windows |
Date: |
Tue, 30 Jun 2015 18:09:30 +0300 |
> Date: Tue, 30 Jun 2015 08:01:53 +0200
> From: martin rudalics <address@hidden>
> CC: address@hidden
>
> > Maybe I'm missing something, but this:
> >
> > case WM_ERASEBKGND:
> > f = x_window_to_frame (dpyinfo, hwnd);
> > if (f)
> > {
> > HDC hdc = get_frame_dc (f);
> > GetUpdateRect (hwnd, &wmsg.rect, FALSE);
> > w32_clear_rect (f, hdc, &wmsg.rect); <<<<<<<<<<<<<<<<<<<<
> > release_frame_dc (f, hdc);
> >
> > looks to me like us erasing the rectangle.
>
> Then if we didn't erase here there would be no gaps. Would it be a
> silly idea to pass the erase call to the main thread?
We've been through this: it's not silly, but implementing that will
have to be able to compact several such redraw pairs into one, because
by the time the main thread wakes up, we could have received several
different expose events, and handling them one by one will cause
flickering.
And after all that, we are still left with the use case of resizing
the frame.
- Re: make-pointer-invisible on Windows, (continued)
- Re: make-pointer-invisible on Windows, Eli Zaretskii, 2015/06/28
- Re: make-pointer-invisible on Windows, martin rudalics, 2015/06/29
- Re: make-pointer-invisible on Windows, Eli Zaretskii, 2015/06/29
- Re: make-pointer-invisible on Windows, martin rudalics, 2015/06/29
- Re: make-pointer-invisible on Windows, Eli Zaretskii, 2015/06/29
- Re: make-pointer-invisible on Windows, martin rudalics, 2015/06/30
- Re: make-pointer-invisible on Windows,
Eli Zaretskii <=