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

Layout toggle split not working. #5513

Closed
L0rdRoyce opened this issue May 20, 2023 · 3 comments
Closed

Layout toggle split not working. #5513

L0rdRoyce opened this issue May 20, 2023 · 3 comments
Labels
4.22 bug missing-log Read the CONTRIBUTING.md file for instructions

Comments

@L0rdRoyce
Copy link

L0rdRoyce commented May 20, 2023

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

Pressing Win+e (layout toggle split) does not toggle layout once Win+v (split toggle) is pressed. It's working fine before Win+v is pressed on the window but as soon as Win+v is used on the window, Win+e stops working and instead works just like Win+v. So once win+v is pressed win+e starts behaving like win+v instead of doing what its supposed to do.

Expected Behavior

When Win+e is pressed the vertically split layout should change to horizontal split layout. When Win+v is pressed the indicator should toggle between vertical and horizontal positions. Win+e (layout toggle split) should not depend on whether Win+v (split toggle) has been pressed or not.

Reproduction Instructions

Open 2 windows. Press Win+e (layout toggle split) and it should work. Now press Win+v (split toggle) while focus is on the left window. Further pressing Win+e doesn't work. Now focus on the right window. Press Win+e and it should work. Now press Win+v and any further Win+e deos not work in either window. Opening new windows and focusing on them enables Win+e but again if Win+v is pressed then Win+e stops working.

Environment

Output of i3 --moreversion 2>&-:

i3 version: 4.22 (2023-01-02)
Config file
Config Url: https://pastebin.com/pauWfSSz
- Linux Distribution & Version: Arch Linux
- Are you using a compositor (e.g., xcompmgr or compton): picom
@i3bot i3bot added bug missing-log Read the CONTRIBUTING.md file for instructions labels May 20, 2023
@i3bot
Copy link

i3bot commented May 20, 2023

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.22 label May 20, 2023
@slyshot
Copy link
Contributor

slyshot commented Jun 19, 2023

The cause of this seems to be that split toggle creates a container around your window, and layout toggle split changes the layout of /that/ container. I'd like someone who knows about the project's design and philosophy to give some input on whether this should stay that way, or if this is an actual bug before I try and implement a fix and pull request.
The solution seems fairly simple; have layout split toggle keep ascending until it finds a container with more than one window. If it finds none, then we can either have it do nothing or do what it currently does.

@orestisfl
Copy link
Member

The cause of this seems to be that split toggle creates a container around your window, and layout toggle split changes the layout of /that/ container. I'd like someone who knows about the project's design and philosophy to give some input on whether this should stay that way, or if this is an actual bug before I try and implement a fix and pull request. The solution seems fairly simple; have layout split toggle keep ascending until it finds a container with more than one window. If it finds none, then we can either have it do nothing or do what it currently does.

Correct, sounds like this works as expected

@orestisfl orestisfl closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.22 bug missing-log Read the CONTRIBUTING.md file for instructions
Projects
None yet
Development

No branches or pull requests

4 participants