News for hackers. Stuff that matters.
Re:Show HN: Lite – A small, fast text editor by barrkel on Saturday May 09, 2020 @06:55PM (#23128919)
It isn't. Normally the application needs to be aware of dirty rectangles; it fetches them from the window compositor, and it needs to limit its drawing calculations based on the dirty rectangle, in order to get the full benefit.

(Dirty rectangles are still perfectly common in desktop apps for when you e.g. drag a window back on screen after overlapping the edge, or if you scroll a window.)

Re:Show HN: Lite – A small, fast text editor by badsectoracula on Sunday May 10, 2020 @06:57AM (#23131684)
You are thinking about regions, dirty rectangles were a common thing in games to avoid redrawing the entire thing and rarely seen outside of them.