diff options
author | 2016-07-06 00:28:14 -0500 | |
---|---|---|
committer | 2016-07-14 17:18:01 -0500 | |
commit | 5c4f52f9537ad0e8e1f251392fea986871ab73b0 (patch) | |
tree | b4aeeb0ca1452824d7b8f55218dd5cebee2c5b2f /include/bar/render.h | |
parent | Don't treat backgrounds as shell surfaces (diff) | |
download | sway-5c4f52f9537ad0e8e1f251392fea986871ab73b0.tar.gz sway-5c4f52f9537ad0e8e1f251392fea986871ab73b0.tar.zst sway-5c4f52f9537ad0e8e1f251392fea986871ab73b0.zip |
Set panels' geometries correctly and don't render them explicitly
Panels were explicitly rendered by calling wlc_surface_render in
handle_output_pre_render. Calling wlc_surface_render does not set the
surface's geometry (like wlc_view_set_geometry does). Sway did not call
wlc_view_set_geometry for panels, so wlc defaulted their geometry to be at
the origin. This is not correct for bars unless their location is top.
Furthermore, for a surface to receive pointer events, its mask has to be
set to visible. This causes wlc to render these surfaces, causing panels
and backgrounds to be rendered twice.
This commit makes panels and surfaces visible, sets the correct geometries
and removes the code that explicitly rendered them.
Diffstat (limited to 'include/bar/render.h')
0 files changed, 0 insertions, 0 deletions