Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

Commands are being interpreted as "repeats" after manual window adjustments

Open rxhanson opened this issue 2 years ago • 2 comments

Discussed in https://github.com/rxhanson/Rectangle/discussions/727

Originally posted by slifty January 13, 2022 I often find myself moving a window / resizing it, and wanting to put it back in it's normal place with my handy Rectangle hotkey -- for instance:

  1. Signal "Top Left" via Rectangle
  2. Adjust the window for whatever reason (moving out of the way temporarily for instance)
  3. Signal "Top Left" via Rectangle (to put it back)

Right now if f I do this, Rectangle treats that second "top left" command a "repeat" -- but it isn't really a repeat -- I actually just want it to go to the top left since that's not where it is right now. This can cause unpredictable behavior if I have special handling of repeat commands in Rectangle set up.

My current solution is to disable repeat commands, but I'd love to use them.

One solution to this problem would be to have the command associated with a window "reset" if the window is manually adjusted; another would be to have the "repeat" version of commands only trigger if the window is in the "correct" position given the most recent command.

rxhanson avatar May 10 '22 03:05 rxhanson