compositor: Don't let pointers get outside of an output on mode switch
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 14 Dec 2012 15:37:26 +0000 (13:37 -0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 14 Dec 2012 16:27:44 +0000 (11:27 -0500)
commit2bbb2b8bac328bcc0c32271e80b5da857916f66b
tree179b12a0814a57a8c99bcaebac9e0ce15d4434c3
parent5c38ef4d4ad7e0b4754c5398340f4155a2688312
compositor: Don't let pointers get outside of an output on mode switch

When an output suffers a mode switch, it is possible that a pointer
was inside the old output area but falls outside of it with the new
size. In that case, move the cursor to the output's bottom-right
corner. Otherwise, there's a crash in clip_pointer_motion().
src/compositor.c