[Tickit-dev] Automatic window expose on geometry change
Paul "LeoNerd" Evans
leonerd at leonerd.org.uk
Fri Feb 15 21:45:44 GMT 2019
I'm writing a C program and once again come upon the annoyance that if
window gets resized, it receives a ..._ON_GEOMCHANGE event but that's
it. No automatic expose. Almost universally I'll just catch that with
static int expose_on_geomchange(TickitWindow *win,
TickitEventFlags flags, void *_info, void *data)
{
tickit_window_expose(win, NULL);
}
I wonder if, now we have the winctls for easily setting/fiddling with
configuration params like this, we should add a "expose on geom change"
control to do that for you.
In fact, it could go a little further and more intelligently than that,
offering a choice of
* No expose
* Expose entire window
* Expose just newly-uncovered areas
Also another (possibly-different?) option to control whether to expose
areas newly uncovered due to resized or moved child windows.
For back-compat both options would have to remain "no" at present, but
I suspect they'd save a bit of time and annoyance at "why isn't this
rendering?" by adding those.
Thoughts?
--
Paul "LeoNerd" Evans
leonerd at leonerd.org.uk | https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://mail.leonerd.org.uk/pipermail/tickit-dev/attachments/20190215/009dc14a/attachment.sig>
More information about the Tickit-dev
mailing list