Add a new `don't read back' flag for variables, to prevent reading their value
authormiod <miod@openbsd.org>
Fri, 8 May 2015 19:12:51 +0000 (19:12 +0000)
committermiod <miod@openbsd.org>
Fri, 8 May 2015 19:12:51 +0000 (19:12 +0000)
commit35d84bc06bc0e3642d0d5e2e77e3432af05d62d3
treedc0a85d5c0befdd1e59668fb33d3b3a0b8c5ee0b
parentda70df93c1c27c48914014cf76ddb0f7f59dc736
Add a new `don't read back' flag for variables, to prevent reading their value
after modifying them. Give this flag to `display.focus', since screen
switching is asynchronous, and reading back will return the screen we are
switching from if the switch has not completed yet.

Also, disallow -= and += syntax for display.focus, as it doesn't make any sense.
sbin/wsconsctl/display.c
sbin/wsconsctl/wsconsctl.c
sbin/wsconsctl/wsconsctl.h