Skip to content

gTile: add auto-tile action for current layout preset#1027

Open
jleaders wants to merge 6 commits intolinuxmint:masterfrom
jleaders:feature/gtile-auto-tile-current-layout
Open

gTile: add auto-tile action for current layout preset#1027
jleaders wants to merge 6 commits intolinuxmint:masterfrom
jleaders:feature/gtile-auto-tile-current-layout

Conversation

@jleaders
Copy link
Copy Markdown

@jleaders jleaders commented Mar 25, 2026

Summary

  • Add a fifth gTile toolbar action that tiles windows into the cells of the currently selected layout preset.
  • Fix follow-up multi-monitor regressions by binding the preset auto-tile action to the clicked grid, guarding focus changes when the current grid is not yet available, and making the close button reliably hide the UI.
  • Reduce flaky UI behavior by simplifying the show/focus update flow and tuning portrait-monitor panel sizing based on the tested dual-monitor layout.

Test plan

  • Open gTile and select a layout preset.
  • Trigger the new preset auto-tile action with multiple windows on one monitor.
  • Confirm the focused window lands in the first cell and the remaining windows follow row-major order.
  • Confirm uneven row and column spans match manual single-cell tiling.
  • On Cinnamon 5.4, confirm Show tile labels still works.
  • Reproduce the second-monitor issue and verify the new preset auto-tile action now works from the tested monitor setup.
  • Verify the gTile close button no longer animates closed and immediately pop back open.
  • Verify the portrait-monitor panel spacing is acceptable in the tested setup after the follow-up sizing adjustments.

Add a fifth toolbar action that tiles the focused window first, then
other windows on the current monitor, into successive cells of the
active layout preset (row-major), using the same pixel geometry as
manual single-cell selection (including span weights).

- New AutoTilePresetGrid UI module and auto_tile_preset-symbolic icon
- GridElementDelegate.computeCellBounds() for reuse
- Metadata version 2.4.0 and CHANGELOG entry

Made-with: Cursor
Msgid "Auto-tile to current layout" added for all locales (untranslated).
Full cinnamon-spices-makepot still requires intltool on PATH.

Made-with: Cursor
Keep the current-layout auto-tile change focused by dropping the broad locale refresh and preserving the existing 5.4 keyboard tile-label behavior in the shipped bundle.

Made-with: Cursor
@jleaders jleaders changed the title gTile: auto-tile windows to current layout preset gTile: add auto-tile action for current layout preset Mar 25, 2026
Use a clearer preset-grid symbol so the new toolbar action reads as tiling windows into the selected layout rather than reusing the existing split icon.

Made-with: Cursor
Stabilize gTile's new current-layout auto-tile flow across monitor changes and close/reopen interactions, and adjust the portrait monitor panel sizing so the UI behaves correctly in the tested dual-monitor setup.

Made-with: Cursor
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.

1 participant