sway icon indicating copy to clipboard operation
sway copied to clipboard

Drag gaps to resize

Open haselwarter opened this issue 3 years ago • 5 comments

Dragging gaps instead of borders should also resize windows.

haselwarter avatar Jan 07 '22 21:01 haselwarter

@haselwarter What's the behavior of i3-gaps?

markstos avatar Jan 16 '22 03:01 markstos

I think that would be a nice feature. Everyone is used to sliding the divider (eg in MS Windows, Android split screen, iPad split screen, Macbook split screen, ...) But we have a nice resizing feature with mod+Right mouse button already

WuerfelDev avatar Jan 18 '22 15:01 WuerfelDev

@WuerfelDev

This fix would particularly improve sway usability on touch devices (tablets, convertibles) that make it difficult to hit that 1-2 pixel border, but would easily allow grabbing a 10 pixel gap.

The touch input use-case also rules out the workaround of mouse-resizing by entering resize mode and right-clicking; that's too inconvenient on a tablet.

@markstos Not sure, never used it. As far as I can tell i3-gaps is a fork of i3. In sway, gaps are a part of the core product, and as such I suspect they are widely used. This seems like an enhancement that could be widely beneficial, and it matches the user expectation that dragging the separator between windows should resize them.

haselwarter avatar Jan 26 '22 09:01 haselwarter

Resizing by dragging the gap does sound very useful for a touch device and is how resizing works on both iOS and Android.

markstos avatar Jan 26 '22 14:01 markstos

This would be useful not only for touchscreens but also for all the people using a laptop without a mouse (and without window borders). Personally I find it incredibly cumbersome to hold the bottom right part of the touchpad. Any alternative would be really useful, like maybe using two separate floating modifiers for dragging ($mod) and resizing (ctrl).

marzapane avatar Jun 14 '22 10:06 marzapane

As kind of a workaround I'm currently just using bigger borders without a gap, but I'd much prefer the look if we could drag the gaps.

I'm coming from Gnome, so mod+right mouse dragging doesn't feel natural to me. I'll try to get used to it, but still, dragging the gaps would be very natural to many users I can imagine.

TheOddler avatar Mar 30 '23 18:03 TheOddler

Perhaps this is not directly related, but I would really like to be able to drag with no border and no gaps (so the draggable area slightly overlaps the windows)

Visne avatar Jun 04 '23 00:06 Visne

As kind of a workaround I'm currently just using bigger borders without a gap, but I'd much prefer the look if we could drag the gaps.

I'm coming from Gnome, so mod+right mouse dragging doesn't feel natural to me. I'll try to get used to it, but still, dragging the gaps would be very natural to many users I can imagine.

feeling the same, sometimes I don't want to use left hand to press mod key to able to resize, just mouse with right hand, require left hand to invole gives some extra efforts more than usual.

tmpm697 avatar Sep 19 '23 18:09 tmpm697

As kind of a workaround I'm currently just using bigger borders without a gap, but I'd much prefer the look if we could drag the gaps. I'm coming from Gnome, so mod+right mouse dragging doesn't feel natural to me. I'll try to get used to it, but still, dragging the gaps would be very natural to many users I can imagine.

feeling the same, sometimes I don't want to use left hand to press mod key to able to resize, just mouse with right hand, require left hand to invole gives some extra efforts more than usual.

Is this not something that can be set in the configuration?

sandmuel avatar Sep 23 '23 04:09 sandmuel