summaryrefslogtreecommitdiff
path: root/sys/src/cmd/plot/libplot/sbox.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-03-07 20:26:30 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2021-03-07 20:26:30 +0100
commitb5783b1e39122f466c1a577720496284223e2217 (patch)
tree1f56ab52e2968a14fba725c3d5ec15b9114e1dd0 /sys/src/cmd/plot/libplot/sbox.c
parentea347ee7f181208be5a2ace0e35d268ccfefa1e4 (diff)
rio: make window focus changes deterministic, cleanup wind.c
Switching window focus used to be non deterministic as the current window in focus (Window *input) was set concurrently while processing window messages such as Resized and Topped. This implements a new approach where wcurrent() and wuncurrent() are responsible for the synchronization and switch of the input. It is implemented by sending a Repaint message to the old input window first, neccesarily waiting until that window releases the focus and then input is updated and then a Topped or Reshaped message is send to the new input window. Note, that when the whole screen is resized that no input changes need to happening anymore.
Diffstat (limited to 'sys/src/cmd/plot/libplot/sbox.c')
0 files changed, 0 insertions, 0 deletions