Subject: Re: bug#19413: 24.4; (desktop-save-mode 1) save frame as page and desktop sticky (_NET_WM_STATE_STICKY) when close Emacs shaded, (setq desktop-restore-frames nil) fix issue.

From: Jan Djärv <[email-masked]>
Date: Mon, 22 Dec 2014 09:52:24 +0100

Den 2014-12-20 18:33, Oleksandr Gavenko skrev:
>
> I just can summarise investigation:
>
>   * (set-frame-parameter nil 'sticky ...) doesn't work, it always set
>     _NET_WM_STATE(ATOM) to _NET_WM_STATE_STICKY regardless passed value.

(set-frame-parameter nil 'sticky nil) does the right thing on non-buggy window 
managers.  Yours is not onw of them it seems.

>
>   * Emacs code base know nothing about _NET_WM_STATE_SHADED value of
>     _NET_WM_STATE(ATOM).

No.

>
>   * There are no "shaded" (info "(elisp)Window Frame Parameters"). I see:
>     ‘sticky’, ‘visibility’, ‘fullscreen’ (maximized, fullboth, fullwidth,
>     fullheight).

We don't support shaded.

>
>   * Closing shaded Emacs with "(desktop-save-mode 1)" add (stick) parameter to
>     ~/.emacs.desktop
>

This is the same as (set-frame-parameter nil 'sticky nil), which triggers a 
bug in your window manager.  Thats the whole problem.

	Jan D.