Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

Allow cols()/rows() to affect orientation of dynamic axis#438

Merged
schnz merged 1 commit intogTile:masterfrom
SeppoTakalo:fix_issue_435
Jan 20, 2026
Merged

Allow cols()/rows() to affect orientation of dynamic axis#438
schnz merged 1 commit intogTile:masterfrom
SeppoTakalo:fix_issue_435

Conversation

@SeppoTakalo
Copy link
Contributor

When placing windows inside a dynamic cell, respect the orientation of the cell so that

  • cols(1d) creates as many columns as there are windows
  • rows(1d) creates rows for every window
  • cols(1,1:rows(1d)) creates 1 fixed 50% window then dynamic rows
  • rows(1,1:cols(1d)) creates upper 50% window, then dynamic columns

Fixes #435

Examples with four windows:

cols(1d)

image

rows(1d)

image

cols(1,1:rows(1d))

image

rows(1,1:cols(1d))

image

cols(1:rows(1d), 1: rows(1d))

image

Tested

I tested this only against V59 tag, as my Gnome is older.

When placing windows inside a dynamic cell, respect the
orientation of the cell so that
* cols(1d) creates as many columns as there are windows
* rows(1d) creates rows for every window
* cols(1,1:rows(1d)) creates 1 fixed 50% window then dynamic rows
* rows(1,1:cols(1d)) creates upper 50% window, then dynamic columns

Fixes gTile#435
@schnz
Copy link
Member

schnz commented Jan 20, 2026

Hey @SeppoTakalo ,

sorry for kept you waiting so long.

This is a great idea you had there. Just made a few rudimentary tests with the most recent version of the extension and it looks good.

I am afraid there won't be a backport for older Gnome versions. I assume you run your self-transpiled version of the extension anyways. Thanks for the contribution. Once you upgrade to Gnome 49 your change will be available in the upstream extension as well :)

@schnz schnz merged commit ecbd7a3 into gTile:master Jan 20, 2026
@schnz
Copy link
Member

schnz commented Jan 20, 2026

By the way, I would very much appreciate some additional documentation in the README.md file.

schnz added a commit that referenced this pull request Jan 24, 2026
Due to the breaking change in PR #438, the main and main-inverted layout
of the autotile feature bahved differently. Windows in the scondary area
were inadvertently arranged left to right instead of top to bottom.
schnz added a commit that referenced this pull request Jan 24, 2026
Due to the breaking change in PR #438, the main and main-inverted layout
of the autotile feature bahved differently. Windows in the scondary area
were inadvertently arranged left to right instead of top to bottom.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

One dynamic column is not possible

2 participants