mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Merge pull request #2726 from RyanDwyer/overhaul-gaps
Make gaps implementation consistent with i3-gaps
This commit is contained in:
commit
f1dbdce0b2
9 changed files with 234 additions and 181 deletions
|
|
@ -174,6 +174,8 @@ struct output_config {
|
|||
struct workspace_config {
|
||||
char *workspace;
|
||||
char *output;
|
||||
int gaps_inner;
|
||||
int gaps_outer;
|
||||
};
|
||||
|
||||
struct bar_config {
|
||||
|
|
|
|||
|
|
@ -94,9 +94,6 @@ struct sway_container {
|
|||
|
||||
// The gaps currently applied to the container.
|
||||
double current_gaps;
|
||||
bool has_gaps;
|
||||
double gaps_inner;
|
||||
double gaps_outer;
|
||||
|
||||
struct sway_workspace *workspace; // NULL when hidden in the scratchpad
|
||||
struct sway_container *parent; // NULL if container in root of workspace
|
||||
|
|
|
|||
|
|
@ -32,10 +32,9 @@ struct sway_workspace {
|
|||
enum sway_container_layout layout;
|
||||
enum sway_container_layout prev_split_layout;
|
||||
|
||||
double current_gaps;
|
||||
bool has_gaps;
|
||||
double gaps_inner;
|
||||
double gaps_outer;
|
||||
int current_gaps;
|
||||
int gaps_inner;
|
||||
int gaps_outer;
|
||||
|
||||
struct sway_output *output; // NULL if no outputs are connected
|
||||
list_t *floating; // struct sway_container
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue