Bug 307639 - Oxygen-qt menus don't have XShape mask after having been shown in composited mode
Summary: Oxygen-qt menus don't have XShape mask after having been shown in composited ...
Status: CONFIRMED
Alias: None
Product: Oxygen
Classification: Plasma
Component: general (show other bugs)
Version: 4.9
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-30 21:05 UTC by Ruslan Kabatsayev
Modified: 2021-03-10 07:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruslan Kabatsayev 2012-09-30 21:05:13 UTC
After having been shown in composited mode, menus don't properly set XShape mask. At the same time, the mask is set if the menu is first shown in non-composited mode.

Reproducible: Always

Steps to Reproduce:
1. Enable compositing
2. Launch Konsole
3. Open View menu, see it looking rounded and antialiased
4. Disable compositing
5. Open View menu, see it being square, i.e. lacking XShape mask
6. Open other previously not opened menus, see XShape set properly
Actual Results:  
Step 5 gives square menu window

Expected Results:  
Menu in step 5 should be rounded via XShape
Comment 1 Hugo Pereira Da Costa 2012-11-04 12:10:21 UTC
Can reproduce (of course !)
working on it now.
Comment 2 Hugo Pereira Da Costa 2012-11-04 12:16:48 UTC
... in fact, might be a Qt bug.
Here, the mask is properly set the *second* time the menu is shown, after compositing has been disabled. (it is not, the *first* time). You confirm ? 
In oxygen, mask is passed to the widget via a "style hint" and it is properly checked there whether compositing is enabled or not, when deciding what to return. So issue is likely that the style hint method is not called often enough (by Qt). I guess I can try find a workaround ...
Comment 3 Ruslan Kabatsayev 2012-11-04 12:37:07 UTC
> Here, the mask is properly set the *second* time the menu is shown, after compositing has been disabled. (it is not, the *first* time). You confirm ? 
No, this doesn't work at any time for me (Qt 4.8.1).
Comment 4 Justin Zobel 2021-03-09 23:58:24 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 5 Ruslan Kabatsayev 2021-03-10 07:21:21 UTC
Still reproducible on Ubuntu 20.04.