From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rolf Ade Newsgroups: gmane.emacs.bugs Subject: bug#31650: 26.1; Desktop mode adds wm stickiness to emacs windows. Date: Wed, 30 May 2018 16:49:20 +0200 Message-ID: <87tvqpdwr3.fsf@pointsman.de> References: <87zi0idk0c.fsf@pointsman.de> <5B0E4778.9030708@gmx.at> <87wovle7ow.fsf@pointsman.de> <5B0E9B14.4040707@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527691703 9382 195.159.176.226 (30 May 2018 14:48:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 May 2018 14:48:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 31650@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 30 16:48:19 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fO2Oc-0002Bs-10 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 May 2018 16:48:14 +0200 Original-Received: from localhost ([::1]:39112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fO2Qj-0000ZD-26 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 May 2018 10:50:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fO2QQ-0000Vk-8Z for bug-gnu-emacs@gnu.org; Wed, 30 May 2018 10:50:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fO2QM-0002mn-CV for bug-gnu-emacs@gnu.org; Wed, 30 May 2018 10:50:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47429) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fO2QM-0002mU-9H for bug-gnu-emacs@gnu.org; Wed, 30 May 2018 10:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fO2QL-0002vb-Ns for bug-gnu-emacs@gnu.org; Wed, 30 May 2018 10:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rolf Ade Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 May 2018 14:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31650 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31650-submit@debbugs.gnu.org id=B31650.152769176611202 (code B ref 31650); Wed, 30 May 2018 14:50:01 +0000 Original-Received: (at 31650) by debbugs.gnu.org; 30 May 2018 14:49:26 +0000 Original-Received: from localhost ([127.0.0.1]:55326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fO2Pm-0002ub-KW for submit@debbugs.gnu.org; Wed, 30 May 2018 10:49:26 -0400 Original-Received: from mxout3.interscholz.de ([85.236.196.238]:41862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fO2Pl-0002uQ-Cg for 31650@debbugs.gnu.org; Wed, 30 May 2018 10:49:25 -0400 Original-Received: from localhost (mxout3 [127.0.0.1]) by mxout3.interscholz.de (Postfix) with ESMTP id 1F2CF26934; Wed, 30 May 2018 16:49:21 +0200 (CEST) X-Virus-Scanned: interscholz amavisd-new at mxout3.interscholz.de Original-Received: from server.web01.interscholz.net (server.web01.interscholz.net [85.236.196.138]) by mxout3.interscholz.de (Postfix) with ESMTP id 84AB420F78; Wed, 30 May 2018 16:49:20 +0200 (CEST) Original-Received: from linux-qg7d (p5B317BC3.dip0.t-ipconnect.de [91.49.123.195]) by server.web01.interscholz.net (Postfix) with ESMTPSA id 4CBE33401E8; Wed, 30 May 2018 16:49:20 +0200 (CEST) In-Reply-To: <5B0E9B14.4040707@gmx.at> (martin rudalics's message of "Wed, 30 May 2018 14:37:40 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146754 Archived-At: >> 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! > > Does it also make the frame sticky when with emacs -Q you simply > evaluate > > (set-frame-parameter frame 'sticky nil))) It's not exactly clear to me what code you ask me to evaluate (the code above isn't syntactically correct or only a part of the code you want me to evalute. If I start emacs -Q and evalute just (dolist (frame (frame-list)) (set-frame-parameter frame 'sticky nil)) in the scratch buffer then, yes, this also puts the frame into sticky mode. > If so, then it would be helpful to debug x_set_sticky, set_wm_state, > x_send_client_event and x_fill_property_data to know which value gets > propagated there. As it stands, it seems that we always turn on > stickyness when setting this frame parameter to nil, so somehow the > chain above seems to corrupt it. Hm. From looking around I see that x_set_sticky and set_wm_state are C functions in xterm.c and x_send_client_event and x_fill_property_data are C functions in xselect.c. I guess you mean I should run emacs under gdb, set breakpoints to that functions and inspect the arguments given to the calls. Unfortunately I'm not used to gdb. With the help of etc/DEBUG (part of the emacs source distribution) I was able to start emacs from within emacs with the help of M-x gdb, to set break points to this four functions and run the new instance, with execution stoping at my breakpoints. But I'm unsure what information could help to understand the problem (I guess, the values of the function parameters?) and how to gather them in a way that provide insight. I'd appreciate more detailed hints what (and how) I should look for. Thanks, rolf