mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Implement borders
Implements rendering of borders. Title text is still to do. Implements the following configuration directives: * client.focused * client.focused_inactive * client.unfocused * client.urgent * border * default_border
This commit is contained in:
parent
b84dfa794c
commit
e67f354333
15 changed files with 447 additions and 74 deletions
|
|
@ -41,9 +41,16 @@ struct sway_view {
|
|||
|
||||
struct sway_container *swayc; // NULL for unmapped views
|
||||
struct wlr_surface *surface; // NULL for unmapped views
|
||||
|
||||
// Geometry of the view itself (excludes borders)
|
||||
double x, y;
|
||||
int width, height;
|
||||
|
||||
bool is_fullscreen;
|
||||
|
||||
enum sway_container_border border;
|
||||
int border_thickness;
|
||||
|
||||
union {
|
||||
struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6;
|
||||
struct wlr_xwayland_surface *wlr_xwayland_surface;
|
||||
|
|
@ -160,6 +167,8 @@ const char *view_get_instance(struct sway_view *view);
|
|||
void view_configure(struct sway_view *view, double ox, double oy, int width,
|
||||
int height);
|
||||
|
||||
void view_autoconfigure(struct sway_view *view);
|
||||
|
||||
void view_set_activated(struct sway_view *view, bool activated);
|
||||
|
||||
void view_set_fullscreen_raw(struct sway_view *view, bool fullscreen);
|
||||
|
|
@ -184,8 +193,6 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface);
|
|||
|
||||
void view_unmap(struct sway_view *view);
|
||||
|
||||
void view_update_position(struct sway_view *view, double ox, double oy);
|
||||
|
||||
void view_update_size(struct sway_view *view, int width, int height);
|
||||
|
||||
void view_child_init(struct sway_view_child *child,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue