When maximized windows are undecorated, space from the decoration is left behind, leaving a gap between the window and the top of the screen (or the top panel). This means that applications such as Maximus don't work with XFWM4. I have tried Maximus with several other WMs such as Metacity and Openbox, and they work correctly.
1. Install Maximus.
2. Run Maximus with the -s switch so that you can easily kill it once you're done.
3. Open any window, or, if running with the no-maximize or m switch, maximize any unmaximized window.
You will see the decoration be removed, but the window will not resize to occupy that space.
Works for me.
Can you provide a screenshot and confirm the version of xfce you are running?
(maximus 0.4.14 on Fedora 13 here)
Here's the screenshot: http://omploader.org/vNHV0Yg
I'm running Arch Linux, maximus 0.4.14, and xfce 4.6.2.
weird, looks it's the top of the application that's missing, not the decorations.
does that happen with this application only (is that google chrome?) or with any?
All applications. That's actually Mozilla Prism running GMail, and all it has is a window decoration. Here's a screenshot of GEdit with the bug to put it in better perspective: http://omploader.org/vNHV0cg
Right, I can reproduce, appears after the the window is moved (did not happen at first)
Right... due to a defect in Maximus's code (which is actually pretty easy to fix; I looked at one of the files and happened to find the mistake), windows that open maximized don't get undecorated if you have the -m switch on, even if you do still have undecorating enabled in gconf. So you have to unmaximize it and then maximize it again for the decoration to be removed and for the bug to appear. You can actually do this repeatedly if you want. Unmaximize, the decoration is put back on. Maximize, the decoration is removed. Rinse, wash, repeat. The bug should continue to appear.
Though since you've managed to reproduce, that info isn't really necessary. :)
I'll be able to easily test out any patches due to the way package creation in Arch Linux works, so when one is available, just let me know. Thank you! :)
I hate to be a nag, but has any research been done on this code on your guys' side? I tried looking at the code in an attempt to figure it out myself, but I can't figure it out, and am too afraid to try poking around in it. :/
I have an idea of what needs to be done: when a window is undecorated (or redecorated) and it's maximized, horizontally maximized, or vertically maximized, it needs to be resized. Just... I have no idea where to do that or how. :/
Created attachment 3090
Patch to fix this issue.
It seems, that after patching this bug does not appear. Hope that my patch will be useful.
(In reply to comment #9)
> Created an attachment (id=3090) [details]
> Patch to fix this issue.
> It seems, that after patching this bug does not appear. Hope that my patch will
> be useful.
Patch seems correct at first sight.
And upon compiling xfwm4 with the patch, I can testify that it does indeed work. Works splendidly, in fact. Xfwm4 seems to work more smoothly with Maximus than Metacity did.
Thank you very much, Denis!
Fixed in master and xfce-4.6 branch, thanks for the patch.
Patch is wrong btw, it's not testing the right "flags" field (it's c->xfwm_flags and *not* c->flags)
Ok, when the use the proper flags the bug remains so the patch is useless, reopening.
Fixed now, both git master and xfce-4.6 branch.