diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2016-01-11 16:05:59 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2016-01-12 16:23:36 +0000 |
commit | 27f1e2e2e4d65442a3d3b96a5ff6860fdf97639c (patch) | |
tree | 1a887b0394e23eca2eee8acaf5402ecba711eceb /hw/xwin/X.ico | |
parent | 2570658b09a6020b9eea773040ea75944ad4aa39 (diff) |
Fix a problem with initially maximized windows
Fix a problem which occurs when a window is initially maxmimized: It's shown
unmaximized, then maximized. The initial unmaximized show causes a
WM_WM_CHANGE_STATE to unmaximized to be sent, while a SW_MAXIMIZE is in flight.
These overlapping in-flight messages can cause the window to get stuck flipping
between maximized and unmaximized states.
It seems that maximizing a Windows window is not a state, but an action which
can only be applied to a visible window. So, this can't be fixed by maximizing
the window before it is made visible.
Instead, explicitly sequence things so the window is always initially shown
unmaximized, then start tracking the state, and then maximize it.
Diffstat (limited to 'hw/xwin/X.ico')
0 files changed, 0 insertions, 0 deletions