• Pekka Paalanen's avatar
    xwm: split weston_wm_window_draw_decoration() · aabf43d0
    Pekka Paalanen authored
    Split the function into two:
    - weston_wm_window_draw_decoration() that only draws the decorations
    with Cairo, and
    - weston_wm_window_set_pending_state() which sets up the surface state
    to be latches into use on the next commit from Xwayland.
    
    The new weston_wm_window_do_repaint() is the equivalent of the old
    weston_wm_window_draw_decorations(), everything still happens the same
    way as it was. Just some debug messages have been reworded.
    
    weston_wm_window_read_properties() is moved into
    weston_wm_window_do_repaint() because it is not strictly a part of
    drawing decorations. The same with resetting repaint_source.
    
    draw_decorations does not need the child position nor xwayland
    interface. Also some convenience variables have been eliminated.
    
    set_pending_state code has been un-indented by one level, so the change
    is best viewed with whitespace changes ignored.
    
    This patch makes the code more readable, and prepares for calling the
    draw_decorations and set_pending_state from different places.
    Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
    aabf43d0
Name
Last commit
Last update
clients Loading commit data...
compositor Loading commit data...
data Loading commit data...
desktop-shell Loading commit data...
doc/doxygen Loading commit data...
fullscreen-shell Loading commit data...
ivi-shell Loading commit data...
libweston Loading commit data...
libweston-desktop Loading commit data...
m4 Loading commit data...
man Loading commit data...
protocol Loading commit data...
shared Loading commit data...
tests Loading commit data...
tools/zunitc Loading commit data...
wcap Loading commit data...
xwayland Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
notes.txt Loading commit data...
releasing.txt Loading commit data...
weston.ini.in Loading commit data...