mrkai77 / mrkai77/Loop

✨ Absolute Center Calculation / Y-axis Offset for Foldable Screens

Open
#1,086 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Swift
Stars
11.6k
Forks
270
Avg merge
8h 7m
Merged PRs (30d)
3

Description

Feature Request Summary

Allow the "Center" action to align perfectly with the absolute physical center of the monitor (compensating for the macOS Menu Bar's vertical offset) without applying global edge padding that ruins Top/Bottom split snaps.

Problem / Opportunity & Desired Solution

Problem or Opportunity:

Current behavior: On a dual-screen foldable monitor setup (recognized as a single large vertical display), the physical hinge is at the exact physical midpoint. However, macOS has a top Menu Bar but no bottom bar, making the "Visible Frame" asymmetrical. Loop calculates the "Center" action based on this Visible Frame, which pushes the window slightly downwards, misaligning it with the physical monitor hinge.

Why it matters now: With the increasing popularity of dual-stacked monitors and foldable screens, the visual misalignment on the physical crease is very distracting.

Desired Solution / Implementation:

How it should work: Introduce an option for the "Center" action to calculate the middle point based on the Absolute Physical Frame (ignoring the Menu Bar) instead of the Visible Frame.

What should happen: Alternatively, allow a specific Y-axis pixel offset (e.g., -24px or -36px) exclusively for the "Center" action, so users can manually pull the center point up to compensate for the menu bar.

Alternatives Considered
  1. Alternative A - Adding Global Bottom Padding: Disabling "Try to use macOS native window management system" and adding a Bottom Padding equal to the Menu Bar height.
    Why it falls short: While it successfully forces the "Center" action to align perfectly with the physical hinge, it breaks edge snapping. When snapping windows to the Top/Bottom halves, the bottom window now has an unwanted 30px dead gap at the very bottom edge of the screen.
Visuals or References

No response

Additional Context

I'm using a foldable monitor as a single vertical screen. Being able to calibrate the exact vertical center point without messing up the screen edges would be a huge quality-of-life improvement for these types of hardware setups. Thank you for the amazing tool!

Priority

High (mission critical)

Final Checks
  • My issue is written in English.
  • My issue title is descriptive.
  • This is a single feature request (multiple feature requests should be reported individually).
  • I have looked to see if this is a duplicate of another feature request.
  • I can help with research or testing.
  • I can help code this feature.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the Center action currently uses the Visible Frame and where window frame calculations are performed. Compare that behavior with the Absolute Physical Frame and evaluate whether a Center-only Y-axis offset or absolute-center option better preserves Top/Bottom snapping. Done means the center aligns with the physical hinge without adding an unwanted edge gap.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.