Summary: | Oxygen / Window Manager doesn't follow Qt window parent rule in terms of decoration | ||
---|---|---|---|
Product: | [Plasma] Oxygen | Reporter: | Dan Sebald <daniel.sebald> |
Component: | style | Assignee: | Hugo Pereira Da Costa <hugo.pereira.da.costa> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Widget Style & Behavior setting for which Oxygen has no decorations
Example of desired window decorations for Fusion, Breeze, Window 9x Example of Oxygen decorations for similar setup |
Description
Dan Sebald
2018-04-12 21:58:10 UTC
Oh, just a follow-up observation and comment. The other detail about the Qt top-level rule in terms of KDE is that making this transition setParent (0, Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint); does create a taskbar entry for the floated window. Per the Qt rule, if I add some arbitrary title to the QDockWidget and float, there are no decorations *and* no taskbar icon--all themes and frameworks. So, Oxygen's taskbar icon is working correctly, but not its window decorations. Wait, is it about KWin window decorations or QWidget styles? Could you test other combinations, e.g. Breeze decoration, or Fusion widget style? What combinations should I try? In this screenshot https://bugs.kde.org/attachment.cgi?id=111984 is the setting for which, if I select Oxygen no decorations (maximize, minimize, close buttons, etc.) appears while the other three choices in the combo-box produce floated windows in wihch borders appear. So I should, say, select some other theme (say it is Breeze and I select Fusion) then come back to the Widget Style & Behavior system setting and try all four styles to confirm Oxygen stands alone as the one for which decorations doesn't appear? (I'm using the word "decoration" in the specific sense that Qt uses it and the KDE kwin/client.cp uses it: the buttons and border.) I am still confused, but maybe Hugo understands the issue. Created attachment 111986 [details]
Example of desired window decorations for Fusion, Breeze, Window 9x
This is KDE display after selecting the "Fusion" setting in the Widget Style and Behavior system setting as shown in the first screen capture 111984. There are conventional system decorations, buttons, title bar, etc. and can be resized and move with conventional mouse actions.
Created attachment 111987 [details]
Example of Oxygen decorations for similar setup
And attached here is what happens when I select "Oxygen" in the combo-box displayed in the Widget Style and Behavior setting show in the screen shot 111984. Notice that no longer are there any system decorations and the window can't be moved and resized in a conventional way. There is a title bar of sorts, but that is the default Qt QDockWidget title bar, non-custom. The buttons on that title bar are used to re-dock to the main window (which can't be done in the Qt sense when the window becomes toplevel). That secondary title bar is also present in the Fusion example, 111986.
I've also shown in this attachment the taskbar icon to illustrate that the two windows I floated appear in the taskbar--which is correct, that is what should happen. If these were normal Qt QDockWidget behavior, the child windows wouldn't have an associated taskbar icon.
I'll also note that when I select "Oxygen" from the list, the system window decorations remain. It is when I dock then refloat the QDockWidgets that the decorations go away. That is why I suggest that Oxygen realizes that the QDockWidgets become "NET::Dock", but in the transition to a normal window, Oxygen is not realized the QDockWidgets should become "NET::Normal" or some other category for which "noborder" turns out to be "false" once run through that case statement.
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you! Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |