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

Forcefully Tile unless explicitly disabled on focused window via hotkey. #176

Open
Ione15 opened this issue Jun 11, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@Ione15
Copy link

Ione15 commented Jun 11, 2024

Is your feature request related to a problem? Please describe.
This request is so that if i "drag" a window around it should automatically tile and not only when i drag it to the edges for snapping.

Describe the solution you'd like
Windows that are being moved should be tiled as soon as they are dropped "not being moved anymore"
This floating behavior should still be possible on a bind-able hotkey.

@Ione15 Ione15 added the enhancement New feature or request label Jun 11, 2024
@Raven-002
Copy link
Contributor

Raven-002 commented Jun 18, 2024

After some looking around, it seems as if there is no way currently to put the new window in a tile close to its position, but rather to only put it:

  1. Back where it was
  2. The position of a new window

This could be done by a hook on when resize is finished to retile the window

I'm still new to the code of this plugin though, so maybe I missed a way to tile close to position

    interactiveMoveResizeFinished() {
        this.ctrl.qmlObjects.osd.show("resize done!");
        if (
            this.ctrl.driverManager.buildingLayout ||
            this.ctrl.driverManager.resizingLayout ||
            !this.extensions.should_retile  // a new parameter to know if we should retile or not is required
        ) {
            return;
        }

        // Not sure if this is the better than calling putWindowInBestTile()
        this.ctrl.driverManager.addWindow(this.window);
        this.ctrl.driverManager.rebuildLayout(this.window.output);
    }

marked in #142 as next release, hopefully there is a better solution than mine in mind

Edit: I found how, see relevant PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants