Re: Re: Patches for styletab and compton

Christopher Roy Bratusek <[email protected]> Thu, 18 Sep 2014 16:53:10 +0200
Newsgroups gmane.comp.window-managers.sawfish
Message-ID <[email protected]>
that's not the case for me (starts blazing fast), but I'll do some more 
tests.

On 17.09.2014 23:41, fuchur wrote:
> Hi,
>
> On Wed, 17 Sep 2014 23:00:16 +0200
> wrote Christopher Roy Bratusek <[email protected]>:
>
>> try latest git head, it does not fail anymore for me and loads almost
>> instantly.
>>
>> Regards,
>> Chris
>>
>> On 17.09.2014 18:46, fuchur wrote:
>>> Hi,
>>>
>>> On Tue, 16 Sep 2014 17:59:06 +0200
>>> wrote fuchur <[email protected]>:
>>>
>>>> Hi,
>>>>
>>>> On Mon, 15 Sep 2014 17:28:52 +0200
>>>> wrote Christopher Roy Bratusek <[email protected]>:
>>>>
>>>>> works fine.
>>>>
>>>> No. I can reproduces this. I have a copy from StyleTab in
>>>> ~/,sawfish/themes/My-StyleTab. If i start sawfish with StyleTab and
>>>> then load My-StyleTab and restart sawfish i got "Lisp backtraces".
>>>> I try to fix this (if i found what is wrong).
>>>>
>>>
>>> I now know what the problem is. If you run make-image after the theme
>>> file is loaded sawfish crash. Put this in theme.jl from Styletab after
>>> the other defcustom:
>>>
>>>
>>> (defvar make-image-start nil)
>>> (setq make-image-start (make-image "Default/left-frame-maximize-button-f.png"))
>>>
>>> (defvar make-image-load nil)
>>> (define (make-image-l)
>>>     (setq make-image-load (make-image "Default/left-frame-maximize-button-f.png")))
>>> (make-image-load)
>>>
>>>
>>> (defcustom styletab-c:make-image nil "Crash sawfish."
>>>     :group (appearance StyleTab:group)
>>>     :type boolean
>>>     :after-set (lambda () (crash-make-image)))
>>>
>>> (defvar crash-image nil)
>>> (define (crash-make-image)
>>>     (setq crash-image (make-image "Default/left-frame-maximize-button-f.png")))
>>>
>>>
>>>
>>>
>>> Now restart sawfish. Open sawfish-client:
>>>
>>> client > make-image-start
>>> #<image 20x32>
>>> client > make-image-load
>>> #<image 20x32>
>>> client > crash-image
>>> ()
>>>
>>> If you now enable or disable the checkbox "Crash sawfish." you got
>>> "Lisp backtraces".
>>>
>>> I can't fix this. Can you fix this?
>>>
>>>
>>
>
> Bevor your changes restart time 4 - 5 seconds now 11 -12 seconds.
> The problem is that we can't run make-image in theme.jl after
> initialization. If we can't fix this the start/restart time is always
> over 10 seconds (on my system). And also without a fix for make-image
> we can't use my two patches from this thread, with this patches it can
> happens that you can't start sawfish any more.
>
>

-- 
Sawfish ML