Mercurial > dwindows
diff lib/placehold @ 2343:347b0f97c295
GTK3: Back port Wayland fixes from the GTK4 code.
Wayland can't draw to a widget outside of an expose event.
Any attempts to draw to a widget outside of an expose will mark the widget as dirty.
Calling dw_flush() will trigger expose events on all dirty widgets.
On X11 draw directly as we used to do, dirty list should remain empty.
This will allow code written with the assumption we can draw any time to function.
In the future, design code to only draw in the expose callback.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 04 Mar 2021 02:00:23 +0000 |
parents | 49d29dc5e3a6 |
children |