-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Ctrl-drag window tiling #595
Conversation
- use the workspace area that currently has the mouse pointer instead of the workspace area which has the window - set initial value of hide_tile_preview_when_window_moves to true
…w' into ctrl-drag-tile
It would also be cool if:
|
@Serkan80 this PR only targets mouse tiling. Maybe you should open separate issues for keyboard navigation and tile suggestions. |
So I think the main issue is that this is not "real" tiling, i.e. the window manager and thus stylesheet has no way of knowing a window is considered tiled in this way. If we're fine with that (which it seems we'll have to be until there are some big tiling improvements to Mutter), then I would be open to pursuing tiling that uses the existing Super+Drag mouse shortcut as well as some keyboard shortcuts. Some things to keep in mind with this sort of tiling:
|
Yes, windows which are tiled via edge tiling will be tiled relative to the new display when moved via SuperShiftRight: Windows which are (fake-)tiled via the new Ctrl-Drag feature will retain their pixel size when moved via SuperShiftRight. But this is also an issue for normal untiled windows (see same video below):
This is currently not possible. Mutter does not expose an API for tiling, it only exposes the tiled match. The windows will always be tiled with 50%. I could implement, that the maximizing action would use the mutter API, so that a least maximized windows are "really" maximized.
I think so. This branch is based on @donadigo's work of #579 . He implemented a In the future the
I do not think that Besides the technical issues what do you think about the Ctrl tiling from a UX point of view? I definitely like this approach because it does not break the existing left/right-edge-tile workflow for users, which do not want to use quarter/vertical-half-tiling. For example, at my university my supervisor has a gnome extension, which enables vertical-half-tiling by dragging the window to top/bottom of the screen. And it always annoys me when I accidentally vertical-half-tile windows at his computer. |
Would be nice if this code were to code merged for the new release :) |
@danrabbit Is it time for a user survey? This PR seems to have gathered lot of attention. |
I'll defer to @cassidyjames here since he's done a lot of UX work on tiling already |
Within the last commits I tried PR to address some points of criticism:
New Behavior
|
@cassidyjames What would you think about merging this as experimental feature, which could be used for the user survey. (After the last couple of changes this PR isn't even production-ready enough for an experimental mode. So there is still some cleanup needed.) I already added an |
As this PR is in its current state much different from its initial implementation, I will close this PR. I also revert this branch to a previous commit (84aa12b) in case someone wants to test the initial behavior. See #963 for the new implementation. |
Fixes: #591
I think it would be a useful addition if CtrlDrag could be used to tile windows. I did a implementation which is based on #579.
Behavior:
The screen gets divided into 9 different areas which all correspond to a different tile-action (see second picture). Dragging a window with Ctrl pressed to one of these areas will activate the tile preview (blue rectangle). Releasing the Left-Mouse-Button will tile the window corresponding to area where the mouse pointer is currently in.
Use-cases:
A problem is that Mutter does not expose an API for tiling, so the windows are not "really" tiled (compared to the edge tiling).
Ctrl is pressed while dragging the window