tudurom / windowchef

Window Chef is a stacking window manager that cooks windows with orders from the Waitron
https://tudorr.ro/software/windowchef/
ISC License
203 stars 14 forks source link

Feature: move and resize windows with the mouse (half-done) #6

Closed tudurom closed 7 years ago

tudurom commented 7 years ago

Any interest?

dialuplama commented 7 years ago

+1 Would be nice feature

tudurom commented 7 years ago

It is half-done. See the manpage for waitron(1).

bkruczyk commented 7 years ago

I don't know if this should be separate feature request but would it be possible to add window movement by clicking-and-draging window top border like in evilwm? And thus providing click-to-focus-and-raise behaviour?

dialuplama commented 7 years ago
  1. Is it possible to add options to move/resize with different mouse buttons (e.g. move with left button, resize with right)

  2. Also i have notice that when you do move and mouse pointer isn't on window center, the window is "jumping", the similar behavior with when you do resize. It is not big deal, but it would be nice if moving/resizing windows would be more "smooth"

dialuplama commented 7 years ago

Found related bug.

After shrink window with mouse you can't move it (with mouse) to the end of right or bottom edge of screen. After expand window with mouse you can move it (with mouse) out of screen edges (normally you can't)

Also there is no problem if using waitron window_move

tudurom commented 7 years ago
  1. Is it possible to add options to move/resize with different mouse buttons (e.g. move with left button, resize with right)

I think I am going to either remove mouse_* commands altogether or to rewrite them and make mouse commands behave like in other window managers like cwm or bspwm where you hold the super key and a mouse button and start moving the window, instead of toggling a "resize mode".

  1. Also i have notice that when you do move and mouse pointer isn't on window center, the window is "jumping", the similar behavior with when you do resize. It is not big deal, but it would be nice if moving/resizing windows would be more "smooth"

I really don't know what to do with it. Sorry :(

Found related bug.

After shrink window with mouse you can't move it (with mouse) to the end of right or bottom edge of screen. After expand window with mouse you can move it (with mouse) out of screen edges (normally you can't)

Also there is no problem if using waitron window_move

Fixed. I'm going to push it.

tudurom commented 7 years ago

Ok. My PR to wmutils was merged. I will remove all mouse_* commands in favor of xmmv(1) and xmrs(1).