Window being resized to the right at every ezthumb startup
Brought to you by:
xuming
I've noticed this weird behavior before, I just couldn't find a way to reproduce it. I've recorded a video:
https://www.youtube.com/watch?v=bsENTv3oyhU&
How to reproduce
mv ~/.config/ezthumb/ezthumb.conf ~/.config/ezthumb/ezthumb.conf.bak
CTRL-C to stop it):while true; do ezthumb & sleep 1; killall ezthumb; done
Notice how the window gets resized at each startup.
System:
ezthumb 3.6.5 (GTK+2 build)
gtk+2 2.24.31
Arch Linux x64
I've messed up the title there, sorry. It should be: "Window gets smaller at each startup"
Last edit: gbr 2017-06-07
Thanks gbr. I rememeber I saw this before. I'll review the resize part asap
Every time when IUP mapping a window with a specified dimension size, the mapped window is always slightly smaller than the required size. The differ of the sizes depends on the local theme. Therefore when the ezthumb stores the current size in the resize event, the size is actually getting smaller. In the loop running test, the shrinking dialog looks pretty funny.
The workaround is to drop the first resize event so the shrinking phenomenon would be limited in the current window only.
The fix will be released in 3.6.7.