Bug 279656 - [Oxygen-Transparent] Window decoration breaks maximization
Summary: [Oxygen-Transparent] Window decoration breaks maximization
Status: RESOLVED UPSTREAM
Alias: None
Product: Oxygen
Classification: Plasma
Component: win deco (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 12:46 UTC by Cesko Voeten
Modified: 2011-08-09 13:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (265.23 KB, image/png)
2011-08-08 12:46 UTC, Cesko Voeten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cesko Voeten 2011-08-08 12:46:41 UTC
Created attachment 62661 [details]
screenshot

Version:           unspecified (using KDE 4.7.0) 
OS:                Linux

When the Oxygen Transparent window decoration style is set, I am unable to maximize windows properly.

Reproducible: Always

Steps to Reproduce:
Maximize a window.

Actual Results:  
The window maximizes but the title bar of the window contains no more icons or text and there is an extra gray 'dead zone' extending from the bottom of the window partway into my dock. If that sounds confusing, I've attached a screenshot.

Expected Results:  
Window maximizes properly.

Gentoo Linux x86_64 w/KDE 4.7, ATI HD5450 with Mesa 7.11 r600g on Linux kernel 3.0, using Compiz as WM.
Comment 1 Hugo Pereira Da Costa 2011-08-08 12:52:59 UTC
Compiz as WM. Means you are using kde4-window-decorator ? Right ? If yes, could you try reproduce the bug with "kwin" instead.
If the bug is not there with kwin, then its a compiz bug really, and there is nothing I can do about it. Sorry :(
Comment 2 Cesko Voeten 2011-08-08 13:16:57 UTC
Nope, can't reproduce with kwin. However, kwin is so buggy for me that it's impossible to use. Sigh.

Are you absolutely positive that oxygen-transparent has no part in this? I ask because I haven't always had this problem and I haven't updated compiz in a long time whereas I compile the trunk version of oxygen-transparent daily.
Comment 3 Hugo Pereira Da Costa 2011-08-08 13:28:14 UTC
Well I don't know. The thing is: oxygen-transparent works well with kwin (here too). What compiz does is use a wrapper (kde4-window-decoration) to load kwin's decoration plugins in a sometimes not so clean way, which I have no handle on (and can't, really).

There have been changes to oxygen-transparent made to accomodate latest kwin changes (and I had to do them in order not to break things there). 
Maybe one of these commits broke the wrapper above, but then the wrapper should be fixed (and not oxygen-transparent for the wrapper). Sorry :(

Note: you could try "downgrade" oxygen-transparent to some earlier version to have it back working though. But really, filing a bug report to compiz folks could also help.

... or use some oxygen-like beryl theme. 
(sorry to hear that kwin is broken for you though ...)

In the meanwhile, I'll keep the bug "open". Will see if I have a chance to try compiz one of these days, and then find a workaround (assuming I can reproduce).

Will keep you posted.

Hugo

(And thanks for taking the time to fill the bug report)
Comment 4 Hugo Pereira Da Costa 2011-08-08 13:37:00 UTC
Thanks ! 
I should submit a patch (that check the guilty missing Visual) soon.
This may (or may not) result in having no shadows for firefox and company (because I do not know the origin of this visual being NULL), but at least
- no more corruption
- correct shadows for other gtk apps.

Will keep you posted.
Comment 5 Hugo Pereira Da Costa 2011-08-08 13:39:57 UTC
grrrr. Ignore comment #4. Thats for another bug report ...
Comment 6 Cesko Voeten 2011-08-09 13:16:42 UTC
OK, good news and bad news.

Good news: I've compiled the oldest version of oxygen-transparent git knows of and the problem still persists. So it's definitely a compiz issue. I'll submit a bug there.

Bad news: Means I'll have to use kwin in the mean time. The only thing that's really broken in kwin for me is window grouping. Now, if I switch to regular Oxygen I can turn that off via System Settings -> Appearance -> Window decorations -> (select Oxygen) -> manage window decoration. There's a checkbox over there for 'enable window grouping'.
Unfortunately, that checkbox is not there with oxygen-transparent. Is that a missing feature?
Comment 7 Hugo Pereira Da Costa 2011-08-09 13:24:21 UTC
... no. Not a missing feature. It has been removed from both oxygen-transparent and normal oxygen (foreseen for kde4.8, and  in sync with which oxygen-transparent is kept). The rationale behind it is that turning window grouping off should be performed at the kwin level, not at the decoration level.
Comment 8 Hugo Pereira Da Costa 2011-08-09 13:26:49 UTC
For the record: what's not working with grouping ? 
You could visit system settings->window behavior->advanced (and titlebar actions) to at least make sure automatic grouping is off ...
Comment 9 Cesko Voeten 2011-08-09 13:34:46 UTC
Well, that's kind of hard to explain. If I open, say, two Dolphin windows, I get two tabs. If I try to switch away from the second window by clicking the first window's tab, the tabs disappear. The windows then completely lose focus, as if they weren't there at all. I can still get the first window (with no tabs showing) back & working by clicking another window and then clicking that first Dolphin window in my dock. The second window is totally broken: if I click that in my dock, then I get tabs again but the window never gets focus. The only way to get things normal again is to close both windows and start just one instance of Dolphin again. BTW, this happens with every single app, KDE or not.

But your workaround of disabling window grouping works, fortunately. Thanks! My computer is useable again :-)

Thanks again for taking your time to help me, I really appreciate it.
Comment 10 Hugo Pereira Da Costa 2011-08-09 13:37:44 UTC
... Sounds quite broken indeed. If you find time, could be useful to file bugs to kwin. I don't have the issues you mention here, but don't use "automatic grouping" either. In any case, glad you can still work with kwin !

As for the original bug report, I'll close it as upstream (compiz).