<i>[update idle] fails to redraw tk windows</i> status still Closed with 7 other changes
by
.
D 2002-12-03T20:22:18
J closedate 2002-12-03T13:22:18
J closer dkf
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nYour\sexpectations\sare\swrong.\s\sWhenever\syou\sdo\s[update\nidletasks],\sTcl\sdrains\sits\squeue\sof\spending\sidle\sevents,\nwhich\sincludes\sinternally-generated\sredraws\sof\sTk\swindows.\s\nHowever,\sit\sprocesses\sno\sevents\sfrom\sexternal\ssources,\sand\ncannot\sdo\sbecause\sthere\sis\sno\seasy\sway\sto\stell\swhat\smatters\nin\sthat\srespect\sand\swhat\sdoes\snot;\swindow\ssize\sand\sposition\nchanges\sare\sparticularly\stricky,\sand\scan\sbe\striggered\sby\nupdates\sof\scontent\sof\sother\swindows\stoo.\s\sAnd\sthis\sapplies\nto\sboth\sinternal\sand\stoplevel\swindows;\s<Configure>\sevent\nhandlers\smake\sthings\stricky,\sand\scan\sbe\sset\son\sany\swindow,\nand\sdeeply\snested\scollections\sof\swindows\smay\stake\sseveral\nrounds\sof\s[update\sidletasks]\sfor\sthem\sto\sbe\slaid\sout\ncorrectly\s(in\sthis\scase,\sit\sis\sbecause\s[update\sidletasks]\ndoes\snot\sprocess\sany\sidle\sevent\shandlers\sregistered\sby\sidle\nevent\shandlers\sthat\sare\srun\sduring\sprocessing,\swhich\sbounds\nthe\samount\sof\swork\sthat\smay\sbe\sdone;\sif\sit\sdidn't,\sTk\swould\nhave\sa\strivial\sdenial-of-service\sattack\svulnerability.)\n\nThe\sonly\sway\sto\sguarantee\sa\scorrect\sredraw\sof\sall\swindows\sis\nto\sregularly\sservice\sthe\sevent\squeue\sfully\s(e.g.\swith\n[update],\s[vwait]\sor\s[tkwait].)\s\sIf\syou\sdon't\sdo\sthis,\syou\ncannot\sguarantee\sthat\sall\spotentially\spending\sredraws\noccur.\s\sEnd\sOf\sStory.\n
J login dkf
J mimetype text/plain
J title [update\sidle]\sfails\sto\sredraw\stk\swindows
J username dkf
K 645964ffffffffffffffffffffffffffffffffff
U dkf
Z e4af6e552b10477479b69c72cfa45510