waylandsink: Don't create throwaway empty regions
authorDaniel Stone <daniels@collabora.com>
Wed, 9 May 2018 12:16:15 +0000 (13:16 +0100)
committerDaniel Stone <daniels@collabora.com>
Fri, 15 Feb 2019 12:03:48 +0000 (12:03 +0000)
commit68fa80e83118a7a2be037eb235e5d211912dee0e
tree3dac9396aa5b16ec91a50aac40de8051cd9cee10
parent2a1176973a51933a4605285ebab17e49ab790f35
waylandsink: Don't create throwaway empty regions

Instead of creating a region, adding nothing to it, setting that as the
input region and destroying the region, you can instead just pass NULL
to wl_surface_set_input_region for the same effect.

Fixes #702
ext/wayland/wlwindow.c