Ticket #1451 (closed defect: fixed)
Colour picker always shows up maximized
| Reported by: | cantabile | Owned by: | Plorkyeran |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0.0 |
| Component: | Interface | Version: | devel |
| Severity: | minor | Keywords: | |
| Cc: | Platform: | Linux | |
| Sub Component: |
Description
"Maximized" : true
This ended up in my config (dunno how, or when). Ever since then, the colour picker has always showed up maximized. In my (arguably crazy) window manager, this non-resizeable dialog is shown at the same size whether it's maximized or not, but when it's maximized, I can't move it. The result: the colour picker is stuck in the top left corner, covering most of the video.
The problem appears to be in persist_location.cpp, where the dialog's maximized state is saved only when the dialog is (un)minimized. Its maximized state is also set based on its minimized state, which doesn't look right at all.
I think it's reasonable to record the dialog's maximized state when closing it. Unfortunately, wxCloseEvent is not fired when pressing esc or clicking the "close" button. wxShowEvent is fired when pressing esc, clicking the X button and clicking the "close" button, but, if the wx documentation is to be trusted, wxShowEvent is not available in osx...

