shell: Only assign focus on touch if there is a touch focus surface
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 3 Jan 2014 07:00:11 +0000 (23:00 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 3 Jan 2014 07:00:11 +0000 (23:00 -0800)
commit0ed6750541eac94af7083fabe5911c20e6ca31f9
tree26c145eae638a010f85426652d321a4a348a5699
parent9f7e331a20c56674eca1502b8adf36d5dbec3ac5
shell: Only assign focus on touch if there is a touch focus surface

Similar to 7c4f6cc145daf66cd9624f1e70dd5278241f5858, if we don't have
a background image from the desktop-shell client or the touch point
for some other reason doesn't hit a surface we trigger a
segfault as we try to deref the seat->touch->focus NULL pointer.

For touch, another problem could be fudgey calibration that ends up
giving touch coordinates outside the output space.

https://bugs.freedesktop.org/show_bug.cgi?id=72839
desktop-shell/shell.c