Editor blank after screen saver (DirectWrite)

15 views
Skip to first unread message

Thomas Linder Puls

unread,
Oct 1, 2025, 5:53:51 AM (13 days ago) Oct 1
to scintilla-interest
When our editors are using DirectWrite they become blank (not redrawn) after the screen saver has been activated.  As soon as the window gets focus the content is redrawn.

How do I avoid this problem?

Regards Thomas Linder Puls

scintilla 5.5.0 and lexilla 5.3.2 on Windows 11.

Neil

unread,
Oct 1, 2025, 4:56:56 PM (13 days ago) Oct 1
to scintilla-interest
It's unclear what is happening. Perhaps Windows is trying to just reshow the buffer and its clear or invalid (incompatible with new screen configuration).

Some tracing may help. Is Scintilla receiving a WM_PAINT? Is that paint failing in a way that can be detected like EndDraw returning D2DERR_RECREATE_TARGET?

It may be possible to produce a work-around like posting a message to perform a redraw after screen saver has ended. Couldn't find a screen saver ended event but there is WM_SYSCOMMAND with SC_SCREENSAVE for start of screen saver.

Neil
Reply all
Reply to author
Forward
0 new messages