mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
Fix border rendering for non-floating containers
This commit is contained in:
parent
a09b0ee9fb
commit
bb09fa197d
8 changed files with 214 additions and 159 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#ifndef _SWAY_CONFIG_H
|
||||
#define _SWAY_CONFIG_H
|
||||
#include <cairo.h>
|
||||
#include <libinput.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
|
@ -376,14 +377,8 @@ struct border_colors {
|
|||
};
|
||||
|
||||
struct border_textures {
|
||||
struct wlr_texture *top_edge;
|
||||
struct wlr_texture *right_edge;
|
||||
struct wlr_texture *bottom_edge;
|
||||
struct wlr_texture *left_edge;
|
||||
struct wlr_texture *top_left_corner;
|
||||
struct wlr_texture *top_right_corner;
|
||||
struct wlr_texture *bottom_right_corner;
|
||||
struct wlr_texture *bottom_left_corner;
|
||||
cairo_surface_t *image_surface;
|
||||
struct wlr_texture *texture;
|
||||
};
|
||||
|
||||
enum edge_border_types {
|
||||
|
|
@ -542,7 +537,6 @@ struct sway_config {
|
|||
struct border_textures focused_inactive;
|
||||
struct border_textures unfocused;
|
||||
struct border_textures urgent;
|
||||
struct border_textures placeholder;
|
||||
} border_textures;
|
||||
|
||||
// floating view
|
||||
|
|
|
|||
|
|
@ -92,6 +92,9 @@ struct sway_output *workspace_output_get_highest_available(
|
|||
|
||||
void workspace_detect_urgent(struct sway_workspace *workspace);
|
||||
|
||||
void workspace_for_each_tiling_container(struct sway_workspace *ws,
|
||||
void (*f)(struct sway_container *con, void *data), void *data);
|
||||
|
||||
void workspace_for_each_container(struct sway_workspace *ws,
|
||||
void (*f)(struct sway_container *con, void *data), void *data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue