mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
b39249508f
Replace `update_view_border()` with `update_container_border()`. The latter should handle both the case where the container is a view or if the container has children.
29 lines
624 B
C
29 lines
624 B
C
#ifndef _SWAY_BORDER_H
|
|
#define _SWAY_BORDER_H
|
|
#include <wlc/wlc.h>
|
|
#include "container.h"
|
|
|
|
/**
|
|
* Border pixel buffer and corresponding geometry.
|
|
*/
|
|
struct border {
|
|
unsigned char *buffer;
|
|
struct wlc_geometry geometry;
|
|
};
|
|
|
|
/**
|
|
* Clear border buffer.
|
|
*/
|
|
void border_clear(struct border *border);
|
|
|
|
/**
|
|
* Recursively update all of the borders within a container.
|
|
*/
|
|
void update_container_border(swayc_t *container);
|
|
|
|
void render_view_borders(wlc_handle view);
|
|
void map_update_view_border(swayc_t *view, void *data);
|
|
int get_font_text_height(const char *font);
|
|
bool should_hide_top_border(swayc_t *con, double y);
|
|
|
|
#endif
|