swayfx icon indicating copy to clipboard operation
swayfx copied to clipboard

Request: better move/resize for touchscreens

Open cccslater opened this issue 10 months ago • 3 comments

Hello, I have a 2in1 laptop. I'd like to be able to add a floating_modifier button to waybar, so that when in tablet mode I can move/resize windows by touch.

Currently, I can move windows by touching their titlebar, but I'd like to go titlebar-less in future. I can resize by touching and dragging the border, but I'd like to go border-less too!

I am imagining the following:

  • A way to toggle floating_modifier so I can add a waybar button that enters this 'mode'
  • Then when it's toggled on, 1-finger touch/drag moves windows and 2-finger touch/drag resizes
  • Also, physically pressing floating_modifier and touching the screen doesn't do anything at present, HOWEVER pressing floating_modifier and using my stylus left/right buttons allows me to move/resize

I hope this makes sense. Let me know if it's an upstream Sway issue and I'll try and suggest it there.

cccslater avatar Jan 13 '25 19:01 cccslater

This may be possible with the ipc

WillPower3309 avatar Jan 13 '25 20:01 WillPower3309

As in: presently possible, or can be made possible?

Also, physically pressing floating_modifier and touching the screen doesn't do anything at present, HOWEVER pressing floating_modifier and using my stylus left/right buttons allows me to move/resize

I think this is a sway bug in fact, not a feature request. If it works with a stylus it should be made to work with touch.

cccslater avatar Jan 13 '25 20:01 cccslater

In fact I'm not the first to have this issue: https://github.com/swaywm/sway/pull/7544 https://github.com/swaywm/sway/issues/5941

cccslater avatar Jan 13 '25 20:01 cccslater