summaryrefslogtreecommitdiff
path: root/distrib/sets/lists/xfont
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-01-17 18:41:51 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-01-17 18:41:51 +0000
commit5302cfe44d126ff354e5c8c679c5d10f9dec8e99 (patch)
tree8296f869508a27e4657787f422e89e3c18f9fd5c /distrib/sets/lists/xfont
parent619cd8c5112a42e233b3033c9eb9d2a1ff1fddfb (diff)
Finally fix the really annoying race where if you rapidly switch groups several
times you'd end up losing clients (thinking they had gone away). From the ICCCM (which should not be read without a stiff drink in hand, I made this mistake so you don't have to): to request a window to be withdrawn one should send a synthetic UnmapRequest event when iconified. To request iconification one should just unmap the window. The ICCM further recommends that the synthetic event should just be taken as a cue to withdraw, to deal with legacy clients. Taking a hint from this, rework xev_handle_unmaprequest to correctly detect these situations. A Withdrawn window may come back anywhere, even as a subwindow of something else, so the correct way to handle this state is to forget it ever existed. While i'm here, kill a dumb attempt to notice this in client_delete, and nuke the very unnecessary arguments. Todd confirmed this fixes the `race'. ok todd@, ok ok okan@
Diffstat (limited to 'distrib/sets/lists/xfont')
0 files changed, 0 insertions, 0 deletions