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

Mouse Quarter Tiling / Ctrl-Drag-Tile #591

Closed
felix-andreas opened this issue Aug 6, 2019 · 5 comments
Closed

Mouse Quarter Tiling / Ctrl-Drag-Tile #591

felix-andreas opened this issue Aug 6, 2019 · 5 comments

Comments

@felix-andreas
Copy link
Member

felix-andreas commented Aug 6, 2019

I think it would be a useful addition if Ctrl-Drag could be used to tile windows. I did a first implementation which is based on #579.

The ctrl-tile-left/right action is especially useful for multi-monitor setups where the edge-tiling can get a bit inconvenient.

A problem is that Mutter does not expose an API for tiling, so the windows are not "really" tiled (compared to the edge tiling).

If the idea gets accepted, I could do a PR.

mouse_quarter_tiling
Ctrl is pressed while dragging the window

tile_sketch

@donadigo
Copy link
Contributor

donadigo commented Aug 6, 2019

I personally think that tile top shouldn't be the default action for dragging to the top as this action is much less desirable than actually maximzing the window.
From the above GIF I conclude that your tiling works based on the window position. I suggest that it should work on mouse position and also make the margin for triggering the tile much lower, it should not cause accidental tiles.

Anyway, I think we would definitely merge it if it worked well.

@felix-andreas
Copy link
Member Author

felix-andreas commented Aug 6, 2019

@donadigo The tiling is based on the mouse position. Maybe I should have been more specific, but this does not aim to improve/replace the edge tiling. Instead when pressing down Ctrl while dragging a window, it gets resized to the area where the cursor is currently in. (see second picture).

@cassidyjames
Copy link
Contributor

Duplicate of #105; let's try to keep discussions on original issues/discussions instead of opening new ones. ;)

@felix-andreas
Copy link
Member Author

I opened a new issue, because I proposed a different tiling mechanism than in the mentioned issue: Instead of moving the window to an edge of the screen, the window is tiled corresponding to the area which the mouse pointer is currently in.

Anyway for the current implementation see #963 :)

@cassidyjames
Copy link
Contributor

@andreasfelix I understand, but the underlying "want" is the same: for quarter tiling. It's easier to track if the discussion is in one place instead of spread across several different issues.

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 a pull request may close this issue.

3 participants