mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-06 05:25:32 +01:00
5a13cb0ed1
The borders are implemented as a surface/buffer attached to each view which is sent to and rendered by wlc in the view_pre_render callback. All the drawing logic is handled in sway/border.c and all the logic for calculating the geometry of the border/view is handled in `update_geometry` in sway/layout.c (same place as gaps are calculated).
10 lines
226 B
C
10 lines
226 B
C
#ifndef _SWAY_BORDER_H
|
|
#define _SWAY_BORDER_H
|
|
#include <wlc/wlc.h>
|
|
#include "container.h"
|
|
|
|
void render_view_borders(wlc_handle view);
|
|
void update_view_border(swayc_t *view);
|
|
int get_font_text_height(const char *font);
|
|
|
|
#endif
|