compositor: Clip pointer coordinates on pointer enter as well
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 23 Oct 2012 17:04:09 +0000 (13:04 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 24 Oct 2012 13:54:42 +0000 (09:54 -0400)
commit00fbbe6b6038553068cd9d903d96c7ba441a01c6
tree879513ce9c8589bd15c713e225cfee6ea8522ae7
parent42470cfc492d03e967ae515d298b1d4712de9a58
compositor: Clip pointer coordinates on pointer enter as well

When tiling window managers resize a non-resizable window they're violating
ICCCM.  Not some hippie-community standard like EWMH, but ICCCM, which is
about as old and sacred as the constitution.  If they want to force a window
to be a size it wasn't designed for, at least they could have the decency to
reparent the client window into a bigger containing window of whatever size
they think it should be.  But apparently ICCCM compliance is too much to ask.

Anyway, all that just to say that it's really not our fault when we get an
enter event with coordinates outside the valid output region.  But we'll
clip it anyway and work around mis-behaving tiling WMs.
src/compositor.c