AlexisBRENON / ewmh_m2m

EWMH-compliant move to monitor utility
https://pypi.org/project/ewmh-m2m/
MIT License
90 stars 5 forks source link

Window forgets unmaximized resolution after move #16

Open tobip opened 4 years ago

tobip commented 4 years ago

After moving a maximized window from one screen to another, it "forgot" its unmaximized width and height settings.

Maybe there is a possibility to remember the unmaximized state?

At the moment, after moving a maximized window, and then unmaximizing it, the state gets changed from maximized to unmaximized, but the width and height stay almost the same.

AlexisBRENON commented 4 years ago

Yeah, I noticed this also.

Needs some investigations. Stay tuned.

tobip commented 4 years ago

Alright.

Well I don't know how the script works, so this is just what I have in my mind: Maybe it's possible to unmaximize the window, then move it to the other screen, and then maximize it, immediately after each other.

AlexisBRENON commented 4 years ago

For what I remember, this used to be working in the past (because it was one of my expected feature).

The code works exactly like this:

However, the resize step does not seem to work anymore... I opened an issue BurntSushi/xpybutil#15 to get some help.