GNU bug report logs -
#30699
26.0.91; buffer contents flicker on macOS frames when frames are resized
Previous Next
Reported by: Aaron Jensen <aaronjensen <at> gmail.com>
Date: Sun, 4 Mar 2018 17:39:01 UTC
Severity: normal
Tags: fixed
Found in version 26.0.91
Fixed in version 27.1
Done: Alan Third <alan <at> idiocy.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Wed, 7 Mar 2018 20:26:03 +0000
> From: Alan Third <alan <at> idiocy.org>
> Cc: 30699 <at> debbugs.gnu.org, aaronjensen <at> gmail.com
>
> updateFrameSize in nsterm.m calls SET_FRAME_GARBAGED, which appears to
> just flag the frame for clearing.
>
> My assumption was that redisplay first checks if the frame is garbaged
> and if so clears it, then redraws the contents of the frame.
>
> I put the calls to NS(En|Dis)ableScreenUpdates at the start and end of
> redisplay_internal:
>
> modified src/xdisp.c
> @@ -13868,7 +13868,7 @@ redisplay_internal (void)
> redisplaying_p = true;
> block_buffer_flips ();
> specbind (Qinhibit_free_realized_faces, Qnil);
> -
> + ns_disable_screen_updates ();
> /* Record this function, so it appears on the profiler's backtraces. */
> record_in_backtrace (Qredisplay_internal_xC_functionx, 0, 0);
>
> @@ -14602,7 +14602,7 @@ redisplay_internal (void)
> #endif
> if (interrupt_input && interrupts_deferred)
> request_sigio ();
> -
> + ns_enable_screen_updates ();
> unbind_to (count, Qnil);
> RESUME_POLLING;
> }
>
> I realise this isn’t robust, but I was just testing it out.
>
> I imagine my failure here is that ns_clear_frame isn’t called from
> redisplay at all, but somewhere else.
I believe it is called from clear_frame, which is called by
redraw_frame, which in turn is called by redraw_garbaged_frames.
The call to ns_enable_screen_updates is too late, I think: you must
enable screen updates before redisplay_internal calls update_frame,
because that's where we actually draw stuff on the screen.
This bug report was last modified 7 years and 113 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.