morgant / mlvwm

Macintosh-like Virtual Window Manager (official repo)
http://www2u.biglobe.ne.jp/~y-miyata/mlvwm.html
275 stars 8 forks source link

xdotool can't move windows #25

Closed morgant closed 3 years ago

morgant commented 3 years ago

When using xdotool under OpenBSD 6.9, xdotool's windowsize command works to resize windows, but windowmove does not result in a window being moved. If I switch to fvwm, both windowsize & windowmove work correctly.

morgant commented 3 years ago

It seems that the code in event.c's handle_configure_request() which would set tmp_win->frame_x & tmp_win->frame_y is commented out. Uncommenting it results in xdotool being able to successfully move MLVWM windows using its windowmove command.

It seems to prevent the window from being placed off the left or top of the screen, so I don't know if it needs to be smarter or not.

morgant commented 3 years ago

With that code block uncommented, I did end up removing the constraint preventing windows from being moved off screen to the left, but kept the constraint preventing them from being moved above the menu bar. I also cleaned up the code a little bit to not modify tmp_win frame values before passing to SetUpFrame(), which reduced the number of variables needed, as well.