GNOME Bugzilla – Bug 692232
Window size does not correspond to the window being created
Last modified: 2014-03-16 13:05:44 UTC
Created attachment 234044 [details] [review] Patch for inappropriate window size calculation The problem appears for example with Gimp running in multiple window mode under MS Windows. Each time Gimp is restarted, its tool windows are re-created a little bit taller than were previously saved in the sessionrc. The problem is in gtk+, in gdk/win32 module, namely in "_gdk_win32_display_create_window_impl" function of gdkwindow-win32.c file. The window extent is calculated in this method using AdjustWindowRectEx call with arguments dwStyle and dwExStyle. Later, these two arguments are used in CreateWindowExW call, but at lease dwExStyle is changed between adjusting the rectangle and creating the window. Thus the window size is calculated for different window type, namely the windows with ex-style WS_EX_TOOLWINDOW are affected by this mistake. Attached is the patch for the problem.
Thanks, pushed to gtk-2-24: https://git.gnome.org/browse/gtk+/commit/?h=gtk-2-24&id=7ff6e601c3300d4adb0aa224ab128ce3f4f56f5f