weston/clients
Armin Krezović ea0316a54c keyboard: Only set toplevel when there is a valid output
Currently, the keyboard client is created and the input
panel surface is set as toplevel on the first output it
finds. This does not work in a scenario when there are
no outputs, resulting in weston-keyboard to crash at
startup due to operating on an invalid output pointer.

This makes input panel toplevel setting depend on a
valid output, and if there was no output present at
startup, it will be set toplevel as soon as an output
gets plugged in.

v2:

- Remove dependency on output pointer at startup
- Only setup output_configure_handler after the
  keyboard has been created
- Let the output_configure_handler handle toplevel
  setting in all cases

Signed-off-by: Armin Krezović <krezovic.armin@gmail.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
[Pekka: fixed a line break]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2016-06-27 14:23:05 +03:00
..
calibrator.c Moved helper macro to a discrete include file. 2015-06-15 17:11:45 -07:00
clickdot.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
cliptest.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
desktop-shell.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
dnd.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
editor.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
eventdemo.c eventdemo: use %u for uint32_t printing 2016-05-16 15:01:45 +03:00
flower.c client: fix spelling mistake 2016-04-05 16:00:21 -07:00
fullscreen.c clients: Use zalloc 2016-03-09 22:54:54 -08:00
gears.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
image.c cosmetic: Remove a few double semicolons 2015-10-07 11:22:03 -07:00
ivi-shell-user-interface.c ivi-shell-user-interface: ignore all but first seat 2016-05-12 11:49:03 +03:00
keyboard.c keyboard: Only set toplevel when there is a valid output 2016-06-27 14:23:05 +03:00
multi-resource.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
nested-client.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
nested.c clients/nested: fix undefined reference to xzalloc 2016-04-25 13:44:09 +03:00
presentation-shm.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
resizor.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
scaler.c clients/scaler: migrate to wp_viewporter 2016-06-09 11:07:22 +03:00
screenshot.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
simple-damage.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
simple-dmabuf-intel.c clients/dmabuf-intel: use three buffers 2016-06-17 11:30:37 +03:00
simple-dmabuf-v4l.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
simple-egl.c simple-egl: use roundtrip after get_registry request 2016-03-15 14:31:07 +02:00
simple-shm.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
simple-touch.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
smoke.c client: fix spelling mistake 2016-04-05 16:00:21 -07:00
stacking.c clients: Correct drawing glitch in stacking demo 2015-10-21 16:57:47 -05:00
subsurfaces.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
terminal.c terminal: Document console codes less cryptically 2016-06-16 11:10:35 -07:00
transformed.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
weston-info.c weston-info: look for the right wp_presentation 2016-04-22 10:43:40 +03:00
weston-simple-im.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
window.c toytoolkit: Return NULL when no outputs are present 2016-06-27 13:17:05 +03:00
window.h clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00