Open Bug 1448199 Opened 6 years ago Updated 2 months ago

Open window in maximized state triggers extra reflow in window open path

Categories

(Core :: Widget: Win32, enhancement)

enhancement

Tracking

()

Tracking Status
firefox61 --- affected

People

(Reporter: xidorn, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

See the analysis in bug 1446264 comment 34.

I had two patches in that bug to remove these extra reflows, but those end up causing other non-trivial issues e.g. bug 1447864, so we should probably have it fixed separately.
These are the patches previously reviewed in bug 1446264 comment 83 and bug 1446264 comment 84. They are not landable at the moment until we can fix bug 1447864.
Comment on attachment 8962292 [details]
Bug 1448199 part 1 - Allow window to show earlier when sizemode is changed before window turned visible.

https://reviewboard.mozilla.org/r/231172/#review236768
Attachment #8962292 - Flags: review?(jmathies) → review+
Comment on attachment 8962293 [details]
Bug 1448199 part 2 - Delay handling of WM_SETFOCUS after we explicit show the window.

https://reviewboard.mozilla.org/r/231174/#review236770
Attachment #8962293 - Flags: review?(jmathies) → review+
I think there is an alternate approach for avoiding the resize reflow here that, we can size the window as if it's maximized from the very beginning, but change its normal size via SetWindowPlacement. That way we can update the normal size whatever we want even when the window is maximized.

Exactly how that should work is a question, though.
Severity: normal → S3
Attachment #9384711 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: