[xmonad] XMonad avoidStruts really slow
vogt.adam at gmail.com
Thu Apr 25 18:09:26 CEST 2013
Does the attached patch address your issue? It vaguely does what
On Thu, Apr 25, 2013 at 10:56 AM, Joachim Breitner
<mail at joachim-breitner.de> wrote:
> Dear Svein,
> Am Donnerstag, den 25.04.2013, 15:49 +0100 schrieb Svein Ove Aas:
>> I've had some speed issues with XMonad and Chrome lately, which I
>> eventually tracked to avoidStruts. (And Chrome, but never mind that.)
>> I think the problem is probably that ManageDocks.calcGap recalculates
>> the gap every time you switch windows, and not for instance every time
>> a new window is created.. but that's as much as I've managed to figure
>> Things work pretty well if I just swap avoidStruts for a
>> statically-configured 16-pixel gap, so I'm going to leave it at this
>> for now, in hopes that the fix will be immediately obvious to you. I
>> might give it a shot if you don't have time, though.
> thanks for spotting the issue!
> It’s been a while since I hacked on xmonad, and I don’t see an immediate
> fix. Some way to approach it would be to extend the xmonad core so that
> the result of getStrut is stored along with the window. Another way
> would be to extend the datatype of the AvoidStruts to remember some
> data. But what? The gap? The strut of each window? Only on the current
> workspace or everywhere?
> I suggest you take this discussion on the xmonad mailing list, which I
> have CCed, and maybe you can come up with a fix!
> Joachim "nomeata" Breitner
> Debian Developer
> nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
> JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata
> xmonad mailing list
> xmonad at haskell.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8566 bytes
Desc: not available
More information about the xmonad