xiaoyifang / goldendict-ng

The Next Generation GoldenDict
https://xiaoyifang.github.io/goldendict-ng/
Other
1.64k stars 90 forks source link

The window is abnormal after waking up from sleep in Windows #1337

Open blue-cosmos opened 10 months ago

blue-cosmos commented 10 months ago

Discussed in https://github.com/xiaoyifang/goldendict-ng/discussions/1336

Originally posted by **blue-cosmos** December 22, 2023 我的Goldendict-ng设置为占满左边半边屏幕(使用Windows+方向键设置的)。每次Windows睡眠后再唤醒,Goldendict-ng的窗口都会出现异常:除了窗口的title bar,整个窗口内部区域都向上滚动了一点(大约一行字的距离),menu bar消失,toobar被title bar盖住了一点;鼠标定位错误,点在窗口内某个地方,点击生效的地方却是点击处上面一点。以前用Goldendict原版没有这个现象。异常后,把窗口最大化再恢复原窗口大小,就可以解决。问题不大,但有点烦人。 OS: Windows 10 Goldendict-ng 23.12.07-HeavySnow.20231208.b0086d5c Qt 6.6.1 Visual C++ Compiler 192930153 windows winnt 10.0.19045 x86_64-little_endian-llp64 Flags:USE_XAPIAN MAKE_ZIM_SUPPORT USE_ICONV MAKE_CHINESE_CONVERSION_SUPPORT no_ffmpeg_player
github-actions[bot] commented 10 months ago

Bot detected the issue body's language is not English, translate it automatically.

Discussed in https://github.com/xiaoyifang/goldendict-ng/discussions/1336

Originally posted by **blue-cosmos** December 22, 2023 My Goldendict-ng is set up to fill the left half of the screen (set using Windows+arrow keys). Every time Windows wakes up after sleeping, the Goldendict-ng window will appear abnormal: except for the title bar and menu bar, the entire window area has moved upward a little (about a line of text distance); the mouse positioning is wrong, and the point is somewhere in the window. The place where the click takes effect is a little above the click point. This phenomenon did not occur when using the original version of Goldendict. After the exception occurs, the problem can be solved by maximizing the window and then restoring the original window size. Not a huge problem, but a little annoying. OS: Windows 10 Goldendict-ng 23.12.07-HeavySnow.20231208.b0086d5c Qt 6.6.1 Visual C++ Compiler 192930153 windows winnt 10.0.19045 x86_64-little_endian-llp64 Flags:USE_XAPIAN MAKE_ZIM_SUPPORT USE_ICONV MAKE_CHINESE_CONVERSION_SUPPORT no_ffmpeg_player