Fix border rendering for non-floating containers

This commit is contained in:
TheAvidDev 2020-08-23 01:26:39 -04:00
parent a09b0ee9fb
commit bb09fa197d
8 changed files with 214 additions and 159 deletions

View file

@ -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

View file

@ -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);