From: Rolf Ade <rolf@pointsman.de>
To: martin rudalics <rudalics@gmx.at>
Cc: 31650@debbugs.gnu.org
Subject: bug#31650: 26.1; Desktop mode adds wm stickiness to emacs windows.
Date: Wed, 30 May 2018 12:53:03 +0200 [thread overview]
Message-ID: <87wovle7ow.fsf@pointsman.de> (raw)
In-Reply-To: <5B0E4778.9030708@gmx.at> (martin rudalics's message of "Wed, 30 May 2018 08:40:56 +0200")
martin rudalics <rudalics@gmx.at> writes:
> We would eventually have to find out whether and how an Emacs frame
> can get "spontaneously" sticky in a session that has not been polluted
> from a saved desktop. I'd suggest to proceed as follows: Somewhere
> near the end of your init file (that is, after the code that restores
> the previous desktop) insert this code:
>
> (let (sticky-frames)
> (dolist (frame (frame-list))
> (when (frame-parameter frame 'sticky)
> (setq sticky-frames (cons frame sticky-frames)))
> (set-frame-parameter frame 'sticky nil))
>
> (when sticky-frames
> (message "The following frames were found sticky: %s" sticky-frames)))
>
> Now this should (1) make all your frames non-sticky in the new session
> and (2) tell you if some frames were stored as sticky in your last
> session. If (2) happens frequently and you are sure that you have
> never marked any frames as sticky, we could execute that code above
> with an idle timer and so get an approximate indication of _when_ a
> frame changes its stickyness spontaneously.
Now, this is interesting.
I start emacs -Q. The frame comes up and isn't sticky.
Now I evaluate your code from above in the scratch buffer. It returns
nil. _But_: It also puts the frame into sticky mode!
If I evaluate your code again, it now returns:
The following frames were found sticky: (#<frame emacs@linux-qg7d 0x131a320>)
But the emacs frame is still sticky. If I evaluate your code once again
(the third time) it returns nil, as the first time, but the frame is
still sticky.
If I "un-stick" the frame with the appropriate wm command and evaluate
your code again it returns nil, but puts the frame back into sticky
mode!
If I start emacs -Q and first put the frame into sticky mode (with wm
command) and then evaluate your code I get
The following frames were found sticky: (#<frame emacs@linux-qg7d 0x131a320>)
But the frame is still sticky. If I evaluate your code again it returns
nil, but the frame stays in sticky mode.
This seems weird but this is, what I see, reproducible. As written, this
is with emacs 26.1 and fvwm2 2.6.4
rolf
next prev parent reply other threads:[~2018-05-30 10:53 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-30 1:12 bug#31650: 26.1; Desktop mode adds wm stickiness to emacs windows Rolf Ade
2018-05-30 6:40 ` martin rudalics
2018-05-30 10:53 ` Rolf Ade [this message]
2018-05-30 12:37 ` martin rudalics
2018-05-30 14:49 ` Rolf Ade
2018-05-31 7:28 ` martin rudalics
2018-05-31 13:00 ` Rolf Ade
2018-05-31 13:55 ` martin rudalics
2018-05-31 14:05 ` Robert Pluim
2018-05-31 16:02 ` Robert Pluim
2018-06-01 6:09 ` martin rudalics
2018-06-01 6:41 ` Robert Pluim
2018-06-02 9:12 ` martin rudalics
2018-06-04 9:14 ` Robert Pluim
2018-05-31 22:58 ` Noam Postavsky
2018-06-01 6:09 ` martin rudalics
2018-06-01 10:47 ` Rolf Ade
2018-06-02 9:13 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wovle7ow.fsf@pointsman.de \
--to=rolf@pointsman.de \
--cc=31650@debbugs.gnu.org \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.