Skip to content
Snippets Groups Projects
Commit f6ce0828 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Steve Lhomme
Browse files

qt: call `QWidget::ensurePolished()` before setting transient parent in VLCMenu

`QVLCDialog::setWindowTransientParent()` first creates a window if it is not
already created.

Depending on the platform, a `QMenu` might use special attributes for its
underlying window. Some of these special attributes, such as, translucent
background requires them to be set prior to creation.

`QMenu` does such adjustments in polishing stage. Calling `ensurePolished()`
before calling `QVLCDialog::setWindowTransientParent()` satisfies that the
window is going to be what `QMenu` really wants.
parent 967e3744
No related branches found
No related tags found
1 merge request!5800qt: fix menus can no longer have translucent background
Pipeline #498306 passed with stage
in 22 minutes and 43 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment