xwm: move set_title and set_pid
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 15 Dec 2016 14:04:14 +0000 (16:04 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 17 Jan 2017 14:35:35 +0000 (16:35 +0200)
commitc9ca2c02622decfd01e5be404437cc0761b9cf0b
treed6169dd9351bc78285b96c62953bf386aa682212
parent9a330e1abb5a965e3cd48a228950ed00f4f68db1
xwm: move set_title and set_pid

Move the calls to set_title() and set_pid() out of
weston_wm_window_read_properties() and into the three callers, each
slightly different.

xserver_map_shell_surface(): already calls these functions after
creating the shell surface, so no need to add calls.

weston_wm_handle_map_request(): can be called only on unmapped (in X11)
Windows, so no need to add calls.

weston_wm_window_draw_decoration(): window->shsurf and window->surface
are either both set or both NULL, so the check for window->shsurf is
removed when moving the set_title() and set_pid() calls under a
window->surface check.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
xwayland/window-manager.c