https://bugs.kde.org/show_bug.cgi?id=453977

            Bug ID: 453977
           Summary: X11: window rule setting "No titlebar and frame" has
                    no effect on GTK applications
           Product: kwin
           Version: git master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: rules
          Assignee: kwin-bugs-n...@kde.org
          Reporter: o...@geek.co.il
                CC: isma...@gmail.com
  Target Milestone: ---

SUMMARY
Setting a window rule that includes the "Appearance & Fixes" clause "No
titlebar and frame" has no effect on the targeted window's "No Border" feature
(as can be see under the windows operation menu' "More Actions" sub menu), for
GTK applications.

I have tested the issue with various GTK and GNOME applications as well as with
Google Chrome.

This is running Neon Jammy unstable, but I've had the same behavior with
previous builds.

STEPS TO REPRODUCE
1. Start a GTK application
2. Create a new window rule by detecting the new application's window
properties. select class or anything else that applies.
3. Add "No titlebar and frame" clause and set to "Force" and choose either
"yes" or "no" for the setting.
4. Add "Titlebar color scheme" (for control) clause and set to "Force" and
choose any value for the setting.
5. Click "Apply".
6. Change "No titlebar and frame" setting to the other value, and "Titlebar
color scheme" to a different value (that is distinguishable) and click "Apply".

OBSERVED RESULT
The color scheme (and any other setting I tested) does change and take effect
immediately, but the window border status does not change from the
application's default - if it does not allow the window manager to draw
borders, then setting "No titlebar and frame" to "No" does not do anything, and
it it does allow the WM to draw borders, then setting "Yes" does not do
anything.

EXPECTED RESULT
Setting "No titlebar and frame" to "Force" and "No" should force kwin to draw
window borders regardless of the application internal settings, while setting
"Force" and "Yes" should force kwin to not draw window borders.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
I'm a bit confused about the window rules feature called "No titlebar and
frame" while the kwin window's operation menu has a feature called "No border",
but they seem to me to be the same thing with different text. That being said,
with KDE applications I've tested, setting a rule with "No titlebar and frame"
to "yes" indeed sets the "No border" checkbox in the kwin windows operation
menu, while with GTK apps it does not.

Using the "No border" feature, on the kwin windows operation menu, manually
with GTK apps *does* work as expected - if the application requested "No
border", it can be turned off to get the kwin window borders while if the
application did not request that, turning it on removes the kwin window
borders.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to