[Bug 59890] New: Windows Forms window size fails to restore after maximize on Xfce
http://bugs.winehq.org/show_bug.cgi?id=59890 Bug ID: 59890 Summary: Windows Forms window size fails to restore after maximize on Xfce Product: Wine Version: 11.7 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@list.winehq.org Reporter: valy@etersoft.ru CC: rbernon@codeweavers.com Regression SHA1: 0f1d999bb878ea54214057d3662c116271ec4812 Distribution: --- Created attachment 81213 --> http://bugs.winehq.org/attachment.cgi?id=81213 windowsform_test.tar In Windows Forms applications, when attempting to switch to a maximized window, the RestoreBounds property—which is used to restore the window size — gets updated. This bug is reproducible in Xfce. When trying to change the window state, Xfce first sends a ConfigureNotify event with the window size without changing the state, and then changes the state afterwards. In Windows Forms, such behavior is interpreted as a resize of a normal window, which leads to overwriting the RestoreBounds information (the last size for the Normal window is saved), thus causing the bug. Below is an example of debug messages at the moment of window size changes: text WindowState = Normal Size = {Width=286, Height=278} RestoreBounds = {X=1,Y=27,Width=286,Height=278} WindowState = Normal Size = {Width=1928, Height=1183} RestoreBounds = {X=1,Y=27,Width=286,Height=278} WindowState = Maximized Size = {Width=1928, Height=1181} RestoreBounds = {X=-4,Y=21,Width=1928,Height=1183} The file log.log contains +x11drv,+event. A test project for Visual Studio is located in windowsform_test.tar. Steps to reproduce the issue: 1. Click the button; a new window will appear. 2. Move the new window closer to the center. 3. Try to maximize the window and then restore it to the normal state. As a result, the window will not change its size. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59890 --- Comment #1 from valy@etersoft.ru <valy@etersoft.ru> --- Created attachment 81214 --> http://bugs.winehq.org/attachment.cgi?id=81214 log.log -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla