mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05:00
fix_edge_gaps: Allow negative values for outer gaps.
While allowing negative values for the outer gaps it is still prevented that negative values move windows out of the container. This replaces the non-i3 option for edge_gaps.
This commit is contained in:
parent
b80cf982ae
commit
36d9037f2c
6 changed files with 30 additions and 53 deletions
|
|
@ -73,10 +73,10 @@ struct sway_workspace *workspace_create(struct sway_output *output,
|
|||
if (name) {
|
||||
struct workspace_config *wsc = workspace_find_config(name);
|
||||
if (wsc) {
|
||||
if (wsc->gaps_outer != -1) {
|
||||
if (wsc->gaps_outer != INT_MIN) {
|
||||
ws->gaps_outer = wsc->gaps_outer;
|
||||
}
|
||||
if (wsc->gaps_inner != -1) {
|
||||
if (wsc->gaps_inner != INT_MIN) {
|
||||
ws->gaps_inner = wsc->gaps_inner;
|
||||
}
|
||||
}
|
||||
|
|
@ -618,9 +618,6 @@ void workspace_add_gaps(struct sway_workspace *ws) {
|
|||
if (ws->current_gaps > 0) {
|
||||
return;
|
||||
}
|
||||
if (!config->edge_gaps) {
|
||||
return;
|
||||
}
|
||||
if (config->smart_gaps) {
|
||||
struct sway_seat *seat = input_manager_get_default_seat(input_manager);
|
||||
struct sway_container *focus =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue