summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-07-06 00:28:14 -0500
committerFurkan Sahin <furkan-dev@proton.me>2016-07-06 00:28:14 -0500
commit4e212d373f0fd1585629e5b494ba5e3e2671b856 (patch)
treeb4aeeb0ca1452824d7b8f55218dd5cebee2c5b2f /include
parent1b47dacf545a1efbcd7f294093faf8fd6229878d (diff)
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')
-rw-r--r--include/extensions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/extensions.h b/include/extensions.h
index 2e2e4b07..d26e95c1 100644
--- a/include/extensions.h
+++ b/include/extensions.h
@@ -23,6 +23,8 @@ struct panel_config {
enum desktop_shell_panel_position panel_position;
// used to determine if client is a panel
struct wl_client *client;
+ // wlc handle for this panel's surface, not set until panel is created
+ wlc_handle handle;
};
struct desktop_shell_state {