window: expose outputs to applications
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 30 Nov 2011 08:52:38 +0000 (10:52 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Wed, 14 Dec 2011 09:17:46 +0000 (11:17 +0200)
commit999c5b5dcbd2130236336017c12c7e3c819128e2
treeba4742eef9100a7b220621f2a52b7595793d4943
parent6e16811e5e329ca5101b57b3da36a6ffc5e1f3ef
window: expose outputs to applications

Add output_configure_handler as a display property. This exposes only
configured outputs, that is the current mode info is already received,
to applications.

The handler is also called for mode changes on an existing output. This
simplifies the implementation in toytoolkit as we can defer the handler
calls from wl_output binding time to when we receive the current mode.
We do not need separate handlers for "new output" and "mode changed". A
plain "new output" handler would be problematic as the current mode is
not known yet.

Also add delete_handler hook for outputs, but that will never be called
for now, as the protocol lacks a way to signal output disconnections.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/window.c
clients/window.h