configure.ac: Indent --disable-egl option correctly
gl: fix read-back format reporting in the log

weston_compositor::read_format is in Pixman values now, so comparing to
a GL value does not work. Compare to the right value.

This fix affects only the log output of the GL renderer.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
screenshooter: Free allocated memory where missing from some return paths
tests/setbacklight: Close filedescriptor on return paths
window: Free allocated memory on error path
image: Free allocated memory on error path
backlight: Avoid passing an invalid fd into close()
xwayland/window-manager: Avoid doing work for unknown window

In particular if the hash table lookup fails and returns NULL then that value
would be passed into weston_wm_window_schedule_repaint which does not accept a
NULL value.
gl-renderer: make EGL typedefs similar to EGL/egl.h when building without EGL support

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
matrix: add weston_matrix_is_translate() helper

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
weston_surface: replace transform.enabled with transform.type

It's usefull for activating fastpath for simple transforms like translation

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
pixman-renderer: handle surface transform matrix properly

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>