RamonUnch / AltSnap

Maintained continuation of Stefan Sundin's AltDrag
GNU General Public License v3.0
2.08k stars 66 forks source link

commands operate on wrong window (window focused at time of last command) #455

Closed JGJP closed 1 year ago

JGJP commented 1 year ago

I'm observing some interesting behavior, where if I try to resize or pan a window, the actual window that gets affected is always the window that was in focus the last time a command was ran. Sequence of events will thus be like this:

  1. Browser focused
  2. Terminal focused
  3. Try to resize terminal -> browser gets resized (incorrect)
  4. Try to resize terminal again -> terminal gets resized (I assume this is because at step 3 the terminal was actually in focus)
  5. Try to resize terminal again -> terminal gets resized (all good)
  6. Browser focused
  7. Try to resize browser -> terminal gets resized (same issue as step 4)
  8. Try to resize browser again -> browser gets resized (all good)

This is my best assessment of its behavior, as sometimes it will actually resize a window that seemed totally random and hadn't been focused recently, but it turned out that that was the window I opened first after booting up the computer itself, and it would do this on my first command issued after boot.

My settings are as follows:

image image image image

RamonUnch commented 1 year ago

quite a big bug indeed, I will need to investigate.

RamonUnch commented 1 year ago

This one should fix it.

AltSnap1.61test22_x64.zip AltSnap1.61test22_i386.zip

JGJP commented 1 year ago

Seems that this fixes it!