Bug 340166 - Split "No titlebar and frame" option
Summary: Split "No titlebar and frame" option
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 5.1.0
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-20 18:02 UTC by Andrea Scarpino
Modified: 2014-10-21 09:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of KDE 4 (184.69 KB, image/jpeg)
2014-10-21 07:09 UTC, Andrea Scarpino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Scarpino 2014-10-20 18:02:16 UTC
In KDE4 there was a "Hide window title bar" option in KWin rules which in Plasma 5 become "No titlebar and frame".
Could be possible to split this rule into two? I don't want titlebars, but I want borders and shadows.

Reproducible: Always

Steps to Reproduce:
1. Set the no titlebar option in the Windows Rules.
2. Windows have no borders.

Actual Results:  
Windows have no titlebars neither borders or shadows.

Expected Results:  
Windows have not title, but borders.

kwin 5.1.0.1
Comment 1 Thomas Lübking 2014-10-20 18:22:18 UTC
fyi, it's still the very same rule.

What you want requires extension to the Deco API (and support by the deco plugin) - the core cannot handle this.

However, what the core *could* provide was "invisible" borders (for resizing), "external" shadows could be provided by a client hint.

Is this possibly to work around bug #333554, ie. (broken[1], btw.) Gtk3 CSD?

[1] The rely on the motif interpretation of metacity/mutter which significatly differs from original MWM (which would *draw* borders, but you could not move or resize the window...)
Comment 2 Martin Flöser 2014-10-20 18:36:34 UTC
could you please explain the use case? Especially given that Oxygen provides 
per-window rules for setting the border size?
Comment 3 Andrea Scarpino 2014-10-20 21:21:40 UTC
(In reply to Martin Gräßlin from comment #2)
> could you please explain the use case? Especially given that Oxygen provides 
> per-window rules for setting the border size?

Ah, I see now. Oxygen has the rules in its settings, while Breeze uses KWin's one?
I guess this is really confusing IMHO.
Anyway, using the Oxygen window rule as in KDE 4 times I fixed my "issue", but I guess "invisible borders" should be provided by KWin as Thomas said.
Comment 4 Thomas Lübking 2014-10-20 21:27:29 UTC
The question still is "what is your issue" (it's simpler to spot the "proper"/best solution if we know the problem ;-)
Comment 5 Martin Flöser 2014-10-21 06:09:08 UTC
> The question still is "what is your issue" (it's simpler to spot the
> "proper"/best solution if we know the problem ;-)

especially as I'm just again working on KDecoration2. If you explain your use 
case and I see that it makes sense, it could be quite fast to tweak the API to 
support it :-)
Comment 6 Andrea Scarpino 2014-10-21 07:09:09 UTC
Created attachment 89226 [details]
Screenshot of KDE 4

Well, in KDE 4 I didn't use to have titlebars as in this screenshot.

In Plasma 5, when using Breeze with the "No titlebar and frame" option enabled for every windows, it's not possible to resize the windows and then this rule it's unusable.
Using Oxygen the problem went away because it works exactly as before.

So, I'm not sure anymore whether this is a bug in KWin or Breeze.
Comment 7 Martin Flöser 2014-10-21 07:49:48 UTC
thanks. That's then missing in the theme. I'll set to WONTFIX as I don't see a need for KWin core.
Comment 8 Thomas Lübking 2014-10-21 09:59:47 UTC
you apparently want a titlebarless decoration plugin, not special casing (rules purpose)
that's not very hard to do (but better wait for KDecoration2 api to be settled)