mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
add patch/sway-borders
This commit is contained in:
parent
981717d285
commit
420395ed8e
9 changed files with 361 additions and 9 deletions
|
|
@ -110,6 +110,10 @@ sway_cmd cmd_bindcode;
|
|||
sway_cmd cmd_bindswitch;
|
||||
sway_cmd cmd_bindsym;
|
||||
sway_cmd cmd_border;
|
||||
sway_cmd cmd_border_images_focused;
|
||||
sway_cmd cmd_border_images_focused_inactive;
|
||||
sway_cmd cmd_border_images_unfocused;
|
||||
sway_cmd cmd_border_images_urgent;
|
||||
sway_cmd cmd_client_noop;
|
||||
sway_cmd cmd_client_focused;
|
||||
sway_cmd cmd_client_focused_inactive;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
#ifndef _SWAY_CONFIG_H
|
||||
#define _SWAY_CONFIG_H
|
||||
#include <cairo.h>
|
||||
#include <libinput.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <wlr/render/wlr_texture.h>
|
||||
#include <wlr/interfaces/wlr_switch.h>
|
||||
#include <wlr/types/wlr_tablet_tool.h>
|
||||
#include <wlr/util/box.h>
|
||||
|
|
@ -397,6 +399,11 @@ struct border_colors {
|
|||
float child_border[4];
|
||||
};
|
||||
|
||||
struct border_textures {
|
||||
cairo_surface_t *image_surface;
|
||||
struct wlr_texture *texture;
|
||||
};
|
||||
|
||||
enum edge_border_types {
|
||||
E_NONE, /**< Don't hide edge borders */
|
||||
E_VERTICAL, /**< hide vertical edge borders */
|
||||
|
|
@ -506,8 +513,8 @@ struct sway_config {
|
|||
enum focus_follows_mouse_mode focus_follows_mouse;
|
||||
enum mouse_warping_mode mouse_warping;
|
||||
enum focus_wrapping_mode focus_wrapping;
|
||||
bool ttyaccess;
|
||||
bool active;
|
||||
bool ttyaccess;
|
||||
bool failed;
|
||||
bool reloading;
|
||||
bool reading;
|
||||
|
|
@ -548,6 +555,14 @@ struct sway_config {
|
|||
float background[4];
|
||||
} border_colors;
|
||||
|
||||
// border textures
|
||||
struct {
|
||||
struct border_textures focused;
|
||||
struct border_textures focused_inactive;
|
||||
struct border_textures unfocused;
|
||||
struct border_textures urgent;
|
||||
} border_textures;
|
||||
|
||||
// floating view
|
||||
int32_t floating_maximum_width;
|
||||
int32_t floating_maximum_height;
|
||||
|
|
|
|||
|
|
@ -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