xinerama switchpanel corruption fix
commitbbc52564d06aa47b6a0045c7967275a2b4c4f32d
authorIain Patterson <wm@iain.cx>
Sat, 15 Aug 2009 22:04:39 +0000 (16 00:04 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 15 Aug 2009 22:06:31 +0000 (16 00:06 +0200)
tree36a9a2d1504384b290da9b5a35d8309906391864
parent3e9aae7a913b8507a61271c89ef7b8b77e2d49cf
xinerama switchpanel corruption fix

This is a small patch to fix an issue with the switchpanel and a large number
of windows which happens only on a Xinerama setup.

When the number of open windows is so large that displaying all of them would
cause the switchpanel to be too wide for the screen, the panel is supposed to
shrink and scroll to accomodate them all.

In Window Maker 0.92.0 this works for single head displays but not for
Xinerama. The panel extends to the next head and gets garbled. This patch fixes
the issue by correctly constraining the panel to the head with the cursor.

Submitted-by: Gilbert Ashley <amigo@ibiblio.org>
src/switchpanel.c