Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting "layout tabbed" before a window is spawn causes the gaps to increase. #5916

Open
2 tasks done
Samueru-sama opened this issue Feb 12, 2024 · 1 comment
Open
2 tasks done
Labels
4.23 bug missing-log Read the CONTRIBUTING.md file for instructions

Comments

@Samueru-sama
Copy link

Welcome

  • Yes, I'm using the latest major release or the current development version. These are the only supported versions.
  • Yes, I've searched similar issues and discussions on GitHub and didn't find any.

Current Behavior

If you go to an empty workspace and change the layout from the default split to tabbed and spawn a window, the gap around the window will be bigger than if the window was called before changing the layout to tabbed.

This issue only happens if the layout is set to tabbed when the workspace is empty. It does not happen if there is a window before changing the layout.

The extra gap gets fixed by moving the the window to another workspace.

The issue is caused by having my gaps inner 6 gaps outer 0 flipping them around does not cause this.

Expected Behavior

The gap should not change.

Reproduction Instructions

This video shows what happens:

https://streamable.com/kx0nhl

  • I first spawn two windows (I have the mosue cursor close to polybar to better see how the gap changes).

  • I close the two windows and then I use my hotkey to change the layout to tabbed (you have to use a hotkey for this because doing it thru the terminal wont work since the terminal window prevents the bug from happening).

  • Once that is done, spawn any tiled window again, you will see the gap is bigger even before the second window is shown.

i3 version

Binary i3 version:  4.23 (2023-10-29) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.23 (2023-10-29) (pid 106827)
Loaded i3 config:
  /home/user/.local/config/i3/config (main) (last modified: Mon 12 Feb 2024 06:56:44 AM -04, 37730 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

Config file

gaps inner 6
gaps outer 0
smart_gaps off
default_border pixel 1
default_floating_border pixel 1
mouse_warping output
focus_follows_mouse no
focus_on_window_activation focus
bindsym $mod+r layout toggle splith tabbed splitv

Linux distribution & Version

Archlinux Kernel 6.7.4

Are you using a compositor?

picom

Logfile

No response

@i3bot i3bot added the missing-log Read the CONTRIBUTING.md file for instructions label Feb 12, 2024
@i3bot
Copy link

i3bot commented Feb 12, 2024

I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

@i3bot i3bot added the 4.23 label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.23 bug missing-log Read the CONTRIBUTING.md file for instructions
Projects
None yet
Development

No branches or pull requests

2 participants