From unknown Wed Jun 18 23:14:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17408 <17408@debbugs.gnu.org> To: bug#17408 <17408@debbugs.gnu.org> Subject: Status: 24.4.50; tooltips make ms-window go top Reply-To: bug#17408 <17408@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:14:59 +0000 retitle 17408 24.4.50; tooltips make ms-window go top reassign 17408 emacs submitter 17408 Jarek Czekalski severity 17408 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 05 09:41:11 2014 Received: (at submit) by debbugs.gnu.org; 5 May 2014 13:41:12 +0000 Received: from localhost ([127.0.0.1]:51410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhJ8o-000555-KZ for submit@debbugs.gnu.org; Mon, 05 May 2014 09:41:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33838) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhJ8l-00054n-SN for submit@debbugs.gnu.org; Mon, 05 May 2014 09:41:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhJ8a-0001Q3-7o for submit@debbugs.gnu.org; Mon, 05 May 2014 09:41:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhJ8a-0001Py-5N for submit@debbugs.gnu.org; Mon, 05 May 2014 09:40:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhJ8U-0007DS-GC for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 09:40:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhJ8O-0001Ca-S0 for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 09:40:50 -0400 Received: from smtpo09.poczta.onet.pl ([213.180.142.140]:47268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhJ8O-000171-DC for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 09:40:44 -0400 Received: from [192.168.17.9] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3gMlZK2cKgz9ttvx for ; Mon, 5 May 2014 15:40:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1399297241; bh=v6QX//++eIwMf1Nrh8IGklKnWQiL1mmrVb2ODxV3g5U=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=KnZiIqRkPHZKLn8g/YwtD2GPb4OGuPKCovuKLvs7EP00RzkjJOR61G+2DRHzjVZCa y5OmhMOmuSF542d3sAZjkZixVrDKQq27u1twGl5cF9rDL/V/vXVDVL+B0oge5+gLF2 6Z2kceLNNmj/UL6e9iO9lNHZUqCMyOu6esBSLGBs= Message-ID: <536794D9.9000406@poczta.onet.pl> Date: Mon, 05 May 2014 15:40:41 +0200 From: Jarek Czekalski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.4.50; tooltips make ms-window go top Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) I reproduce it on Windows 7, with today's trunk. But this is not new, I just found a way to reproduce it, when the bucket of irritation overfilled. 1. Start "cmd" 2. From cmd do "runemacs -Q" 3. Arrange the windows so that cmd window is on top, but below is the emacs window with toolbar visible. 4. Hover with mouse over toolbar button until tooltip appears. 5. Emacs windows goes top, covering cmd window. Cmd remains the active app, you can type some letters to confirm that. Expected behaviour: At 5 cmd window should stay on top, being fully visible, not covered by Emacs window. It's annoying when you accidentaly provoke the tooltip and bury your application. Forgive me having Emacs always open and full screen :) It happens with other tooltips too, for example tooltips in Occur buffer. Fix suggestion: maybe tooltips should be supressed when Emacs is not the active application. In GNU Emacs 24.4.50.6 (i686-pc-mingw32) of 2014-05-05 on BONSOFTW7 Repository revision: 117061 rgm@gnu.org-20140505010854-t7blwdpa40ejp0xh Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=d:/program_files/emacs-master' Configured features: PNG NOTIFY ACL GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: pl locale-coding-system: cp1250 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 78003 7556) (symbols 24 17728 0) (miscs 20 40 148) (strings 16 11985 4710) (string-bytes 1 307839) (vectors 8 9308) (vector-slots 4 372219 4670) (floats 8 59 178) (intervals 28 228 0) (buffers 508 12)) From debbugs-submit-bounces@debbugs.gnu.org Mon May 05 09:56:08 2014 Received: (at 17408) by debbugs.gnu.org; 5 May 2014 13:56:08 +0000 Received: from localhost ([127.0.0.1]:51789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhJNI-0005YX-0W for submit@debbugs.gnu.org; Mon, 05 May 2014 09:56:08 -0400 Received: from mtaout29.012.net.il ([80.179.55.185]:50221) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhJND-0005Y6-Le for 17408@debbugs.gnu.org; Mon, 05 May 2014 09:56:05 -0400 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N5300300T64U100@mtaout29.012.net.il> for 17408@debbugs.gnu.org; Mon, 05 May 2014 16:57:07 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N530025PTF6QU20@mtaout29.012.net.il>; Mon, 05 May 2014 16:57:07 +0300 (IDT) Date: Mon, 05 May 2014 16:56:01 +0300 From: Eli Zaretskii Subject: Re: bug#17408: 24.4.50; tooltips make ms-window go top In-reply-to: <536794D9.9000406@poczta.onet.pl> X-012-Sender: halo1@inter.net.il To: Jarek Czekalski Message-id: <83y4ygxrbi.fsf@gnu.org> References: <536794D9.9000406@poczta.onet.pl> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17408 Cc: 17408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 05 May 2014 15:40:41 +0200 > From: Jarek Czekalski > > I reproduce it on Windows 7, with today's trunk. But this is not new, I > just found a way to reproduce it, when the bucket of irritation overfilled. > > 1. Start "cmd" > 2. From cmd do "runemacs -Q" > 3. Arrange the windows so that cmd window is on top, but below is the > emacs window with toolbar visible. > 4. Hover with mouse over toolbar button until tooltip appears. > 5. Emacs windows goes top, covering cmd window. Cmd remains the active > app, you can type some letters to confirm that. > > Expected behaviour: At 5 cmd window should stay on top, being fully > visible, not covered by Emacs window. I remember this behavior since I don't know when. If someone knows how to avoid it, explanations and/or patches are welcome. > Fix suggestion: maybe tooltips should be supressed when Emacs is not the > active application. Thanks, but that's not a good suggestion, IMO. For example, I frequently work with Emacs windows that are in the background, and have "focus follows mouse" set so that I could type into such windows. In any case, when the mouse is inside an Emacs frame, Emacs gets a Windows message about that, and it should process that message; it cannot just disregard it. So I don't see how your suggestion could be implemented in practice. From debbugs-submit-bounces@debbugs.gnu.org Mon May 05 10:19:53 2014 Received: (at 17408) by debbugs.gnu.org; 5 May 2014 14:19:53 +0000 Received: from localhost ([127.0.0.1]:51795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhJkH-0006AB-8p for submit@debbugs.gnu.org; Mon, 05 May 2014 10:19:53 -0400 Received: from smtpo15.poczta.onet.pl ([213.180.142.146]:55424) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhJkD-00069r-GN for 17408@debbugs.gnu.org; Mon, 05 May 2014 10:19:50 -0400 Received: from [192.168.17.9] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3gMmRM1B0BzZ0wQP for <17408@debbugs.gnu.org>; Mon, 5 May 2014 16:19:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1399299583; bh=3w9P45ASMhqV+k/CXtjUzDRmwO5qwB19Kf3S8ayrq6E=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=InAr/NqObXPEnDV468E5+zZmQkiuAP2ys6GrEAMMfVdXI8h/hXCNtVhfwdPyrq/QL 1JShjRjxIT693Joh9kntwH8PnR3kw/qFkXtaQu+pKR7aXh0uox/D9oz3TGyY/0Jwse 9IF6gi/CyiZb2QtUwWg13xm8Es1yT7ZlhCCp5CFA= Message-ID: <53679DFE.1020804@poczta.onet.pl> Date: Mon, 05 May 2014 16:19:42 +0200 From: Jarek Czekalski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: 17408@debbugs.gnu.org Subject: Re: bug#17408: 24.4.50; tooltips make ms-window go top Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 17408 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) > I > frequently work with Emacs windows that are in the background, and > have "focus follows mouse" set so that I could type into such windows. And you would miss the tooltip so much? :) > So I don't see how your suggestion could > be implemented in practice. My suggestion was to check whether the window is active right before displaying the tooltip. If the window is not active, the tooltip gets not displayed. Maybe the tooltip should still be displayed if "focus follows mouse" is set. I don't see how this messes with your Emacs usage. Also don't know yet if it's feasible. But that's just a preliminary suggestion. If it gets accepted, it may be the simplest way to help the issue. However Mozilla Thunderbird tooltips do not have this side effect. And sometimes Mozilla is even capable of supressing the incorrect Emacs behaviour. And I don't see its Mozilla's "create message" window be affected by Emacs. Yeah, this is not quite straighforward. Jarek From debbugs-submit-bounces@debbugs.gnu.org Mon May 05 10:47:09 2014 Received: (at 17408) by debbugs.gnu.org; 5 May 2014 14:47:09 +0000 Received: from localhost ([127.0.0.1]:51810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhKAd-00071C-Sd for submit@debbugs.gnu.org; Mon, 05 May 2014 10:47:08 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:50527) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhKAb-00070g-EG for 17408@debbugs.gnu.org; Mon, 05 May 2014 10:47:06 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N5300N00VA9LT00@mtaout24.012.net.il> for 17408@debbugs.gnu.org; Mon, 05 May 2014 17:44:32 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5300NIKVM7KD10@mtaout24.012.net.il>; Mon, 05 May 2014 17:44:32 +0300 (IDT) Date: Mon, 05 May 2014 17:47:02 +0300 From: Eli Zaretskii Subject: Re: bug#17408: 24.4.50; tooltips make ms-window go top In-reply-to: <53679DFE.1020804@poczta.onet.pl> X-012-Sender: halo1@inter.net.il To: Jarek Czekalski Message-id: <83wqe0xoyh.fsf@gnu.org> References: <536794D9.9000406@poczta.onet.pl> <53679DFE.1020804@poczta.onet.pl> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17408 Cc: 17408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 05 May 2014 16:19:42 +0200 > From: Jarek Czekalski > > > I > > frequently work with Emacs windows that are in the background, and > > have "focus follows mouse" set so that I could type into such windows. > > And you would miss the tooltip so much? :) Tooltips are a legitimate part of working with a frame. I don't think my personal preferences count in this matter. > > So I don't see how your suggestion could > > be implemented in practice. > > My suggestion was to check whether the window is active right before > displaying the tooltip. If the window is not active, the tooltip gets > not displayed. Maybe the tooltip should still be displayed if "focus > follows mouse" is set. What does that mean in practice? How to determine whether a window "is active" when it accepts Windows messages? > I don't see how this messes with your Emacs usage. Also don't know yet > if it's feasible. But that's just a preliminary suggestion. If it gets > accepted, it may be the simplest way to help the issue. I'd have to see the details to make up my mind. From debbugs-submit-bounces@debbugs.gnu.org Mon May 05 11:33:22 2014 Received: (at 17408) by debbugs.gnu.org; 5 May 2014 15:33:22 +0000 Received: from localhost ([127.0.0.1]:51830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhKtM-0008Q4-OK for submit@debbugs.gnu.org; Mon, 05 May 2014 11:33:21 -0400 Received: from s74.linuxpl.com ([46.4.67.7]:46022) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhKfS-0007xj-Ux for 17408@debbugs.gnu.org; Mon, 05 May 2014 11:18:59 -0400 Received: from cj.e-siemianowice.pl ([95.215.234.30] helo=[192.168.17.9]) by s74.linuxpl.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1WhKfT-00022u-A8 for 17408@debbugs.gnu.org; Mon, 05 May 2014 17:18:59 +0200 Message-ID: <5367ABD9.8020908@jarek.katowice.pl> Date: Mon, 05 May 2014 17:18:49 +0200 From: Jarek Czekalski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: 17408@debbugs.gnu.org Subject: Re: bug#17408: 24.4.50; tooltips make ms-window go top References: <536794D9.9000406@poczta.onet.pl> <53679DFE.1020804@poczta.onet.pl> <83wqe0xoyh.fsf@gnu.org> In-Reply-To: <83wqe0xoyh.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 17408 X-Mailman-Approved-At: Mon, 05 May 2014 11:33:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) W dniu 2014-05-05 16:47, Eli Zaretskii pisze: > What does that mean in practice? How to determine whether a window "is > active" when it accepts Windows messages? Active in sense of WM_ACTIVATEAPP message: http://msdn.microsoft.com/en-us/library/windows/desktop/ms632614%28v=vs.85%29.aspx Emacs could maintain app_is_active flag using this message. Jarek From debbugs-submit-bounces@debbugs.gnu.org Mon May 05 11:42:42 2014 Received: (at 17408) by debbugs.gnu.org; 5 May 2014 15:42:42 +0000 Received: from localhost ([127.0.0.1]:51838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhL2P-0000GC-JS for submit@debbugs.gnu.org; Mon, 05 May 2014 11:42:41 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:59889) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhL2M-0000Fm-ES for 17408@debbugs.gnu.org; Mon, 05 May 2014 11:42:39 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N5300C00Y3LM600@mtaout24.012.net.il> for 17408@debbugs.gnu.org; Mon, 05 May 2014 18:40:05 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N53009GOY6TG930@mtaout24.012.net.il>; Mon, 05 May 2014 18:40:05 +0300 (IDT) Date: Mon, 05 May 2014 18:42:36 +0300 From: Eli Zaretskii Subject: Re: bug#17408: 24.4.50; tooltips make ms-window go top In-reply-to: <5367ABD9.8020908@jarek.katowice.pl> X-012-Sender: halo1@inter.net.il To: Jarek Czekalski Message-id: <83tx94xmdv.fsf@gnu.org> References: <536794D9.9000406@poczta.onet.pl> <53679DFE.1020804@poczta.onet.pl> <83wqe0xoyh.fsf@gnu.org> <5367ABD9.8020908@jarek.katowice.pl> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17408 Cc: 17408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 05 May 2014 17:18:49 +0200 > From: Jarek Czekalski > > W dniu 2014-05-05 16:47, Eli Zaretskii pisze: > > What does that mean in practice? How to determine whether a window "is > > active" when it accepts Windows messages? > > Active in sense of WM_ACTIVATEAPP message: > http://msdn.microsoft.com/en-us/library/windows/desktop/ms632614%28v=vs.85%29.aspx > > Emacs could maintain app_is_active flag using this message. Patches are welcome, of course. From debbugs-submit-bounces@debbugs.gnu.org Tue May 06 10:46:55 2014 Received: (at 17408) by debbugs.gnu.org; 6 May 2014 14:46:55 +0000 Received: from localhost ([127.0.0.1]:52956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Whgdy-0000Ne-Bf for submit@debbugs.gnu.org; Tue, 06 May 2014 10:46:54 -0400 Received: from smtpo09.poczta.onet.pl ([213.180.142.140]:58084) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Whgdq-0000NC-Mx for 17408@debbugs.gnu.org; Tue, 06 May 2014 10:46:48 -0400 Received: from [192.168.17.9] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3gNNzz2Gylz9ttl0 for <17408@debbugs.gnu.org>; Tue, 6 May 2014 16:46:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1399387599; bh=AxdaDZKArM15P+THB+QK2NmVMsVrfdS0WTh2u6rlJVw=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type; b=XvESpbB35hjbRCoyt9JOSEa4OU5Abh+AQWiQEBPy1xCoOSJ27Cw1FFq6+XJwFzJiZ IThTstsGm1gFqcffr/E07Rvx1p54RNz73bnMSyOkMIiGVP3j0EdYGTKkYwIMhkeSnG jOOlRkBGnn9NiO4UeaZ0iFHNVb9IWELZo3gX0rBQ= Message-ID: <5368F5CD.2090504@poczta.onet.pl> Date: Tue, 06 May 2014 16:46:37 +0200 From: Jarek Czekalski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: 17408@debbugs.gnu.org Subject: bug#17408: 24.4.50; tooltips make ms-window go top Content-Type: multipart/mixed; boundary="------------070800050800090604090801" X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 17408 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) This is a multi-part message in MIME format. --------------070800050800090604090801 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Actually a complete solution was even easier. First I noticed that a Java app I use (muCommander) also retreats from displaying tooltips when the app is inactive. Then a Google search gave me this JDK bug report [1]. And once the SWP_NOOWNERZORDER flag was mentioned, the rest was a walk in a park. Double checking what flags others use for their tooltips revealed nothing more, see this for example [3]. Attaching a patch that applies this flag to our tooltip SetWindowPos [2] invocations, in w32fns.c. Works for me. Tested on trunk and emacs24. If you agree, I might commit this to emacs24. Jarek [1] http://bugs.java.com/view_bug.do?bug_id=6770457 [2] http://msdn.microsoft.com/en-us/library/windows/desktop/ms633545%28v=vs.85%29.aspx [3] http://www.vtdev.com/net/tooltip.html --------------070800050800090604090801 Content-Type: text/plain; charset=windows-1250; name="tooltips_1_00.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="tooltips_1_00.patch" PT09IG1vZGlmaWVkIGZpbGUgJ3NyYy9DaGFuZ2VMb2cnCi0tLSBzcmMvQ2hhbmdlTG9nCTIw MTQtMDUtMDUgMTc6Mzc6NDMgKzAwMDAKKysrIHNyYy9DaGFuZ2VMb2cJMjAxNC0wNS0wNiAx Mzo1OTo0NSArMDAwMApAQCAtMSwzICsxLDkgQEAKKzIwMTQtMDUtMDYgIEphcmVrIEN6ZWth bHNraSAgPGphcmVrY3pla0Bwb2N6dGEub25ldC5wbD4KKworCVN0b3AgdG9vbHRpcHMgcHVs bGluZyBFbWFjcyB3aW5kb3cgdG8gZnJvbnQgKE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gfCBTV1BfRU1BQ1NfVE9PTFRJUCk7CiAKICAgICAvKiBM ZXQgcmVkaXNwbGF5IGtub3cgdGhhdCB3ZSBoYXZlIG1hZGUgdGhlIGZyYW1lIHZpc2libGUg YWxyZWFkeS4gICovCiAgICAgU0VUX0ZSQU1FX1ZJU0lCTEUgKGYsIDEpOwoK --------------070800050800090604090801-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 06 11:08:44 2014 Received: (at 17408) by debbugs.gnu.org; 6 May 2014 15:08:44 +0000 Received: from localhost ([127.0.0.1]:52966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Whgz6-0000yq-3H for submit@debbugs.gnu.org; Tue, 06 May 2014 11:08:44 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:51472) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Whgz3-0000yW-8P for 17408@debbugs.gnu.org; Tue, 06 May 2014 11:08:42 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N5500J00R8UHL00@mtaout24.012.net.il> for 17408@debbugs.gnu.org; Tue, 06 May 2014 18:06:05 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5500FIIRA51240@mtaout24.012.net.il>; Tue, 06 May 2014 18:06:05 +0300 (IDT) Date: Tue, 06 May 2014 18:08:41 +0300 From: Eli Zaretskii Subject: Re: bug#17408: 24.4.50; tooltips make ms-window go top In-reply-to: <5368F5CD.2090504@poczta.onet.pl> X-012-Sender: halo1@inter.net.il To: Jarek Czekalski Message-id: <83bnvbx7uu.fsf@gnu.org> References: <536794D9.9000406@poczta.onet.pl> <5368F5CD.2090504@poczta.onet.pl> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17408 Cc: 17408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Tue, 06 May 2014 16:46:37 +0200 > From: Jarek Czekalski > > Actually a complete solution was even easier. First I noticed that a > Java app I use (muCommander) also retreats from displaying tooltips when > the app is inactive. Then a Google search gave me this JDK bug report > [1]. And once the SWP_NOOWNERZORDER flag was mentioned, the rest was a > walk in a park. > > Double checking what flags others use for their tooltips revealed > nothing more, see this for example [3]. > > Attaching a patch that applies this flag to our tooltip SetWindowPos [2] > invocations, in w32fns.c. Works for me. Tested on trunk and emacs24. > > If you agree, I might commit this to emacs24. Looks good, thanks. But please use the SWP_* flags explicitly, I see no reason to define a special macro for 2 of them when all the rest are spelled out. Other than that, please go ahead and commit to emacs-24. From debbugs-submit-bounces@debbugs.gnu.org Tue May 06 11:26:43 2014 Received: (at 17408) by debbugs.gnu.org; 6 May 2014 15:26:43 +0000 Received: from localhost ([127.0.0.1]:52977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhhGU-0001TD-Te for submit@debbugs.gnu.org; Tue, 06 May 2014 11:26:43 -0400 Received: from s74.linuxpl.com ([46.4.67.7]:56291) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhhGT-0001St-2a for 17408@debbugs.gnu.org; Tue, 06 May 2014 11:26:41 -0400 Received: from cj.e-siemianowice.pl ([95.215.234.30] helo=[192.168.17.9]) by s74.linuxpl.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1WhhGU-0005eX-0X for 17408@debbugs.gnu.org; Tue, 06 May 2014 17:26:42 +0200 Message-ID: <5368FF2A.5090408@jarek.katowice.pl> Date: Tue, 06 May 2014 17:26:34 +0200 From: Jarek Czekalski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: 17408@debbugs.gnu.org Subject: Re: bug#17408: 24.4.50; tooltips make ms-window go top References: <536794D9.9000406@poczta.onet.pl> <5368F5CD.2090504@poczta.onet.pl> In-Reply-To: <5368F5CD.2090504@poczta.onet.pl> Content-Type: text/plain; charset=windows-1250; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 17408 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Eli, Thanks for the quick review. > But please use the SWP_* flags explicitly, I see > no reason to define a special macro for 2 of them when all the rest > are spelled out. There are 2 reasons: 1. 78 chars limit is exceeded and code looks worse without the macro. It's less readable and it's more difficult to say which flags change between invocations. 2. These 2 flags wrapped in a def are of constant nature, they must be used with every call to SetWindowPos. Those out of def are not used in all invocations and their presence depends on other parameters (size, origin). I'm preparing to commit the version without macros, but if you're quick you can change your mind :) Jarek From debbugs-submit-bounces@debbugs.gnu.org Tue May 06 12:06:56 2014 Received: (at 17408-done) by debbugs.gnu.org; 6 May 2014 16:06:56 +0000 Received: from localhost ([127.0.0.1]:53009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhhtP-0002al-BP for submit@debbugs.gnu.org; Tue, 06 May 2014 12:06:56 -0400 Received: from smtpo15.poczta.onet.pl ([213.180.142.146]:59399) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhhtI-0002aJ-QZ for 17408-done@debbugs.gnu.org; Tue, 06 May 2014 12:06:53 -0400 Received: from [192.168.17.9] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3gNQmL5HSjzYxkZq for <17408-done@debbugs.gnu.org>; Tue, 6 May 2014 18:06:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1399392402; bh=ZK01Vp5dtKxyPUHFYxrWabZwnGwww0Ffa7cMbYSVhDg=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=V5IqhOZb3jP6AxZXkPS8Tzrxl4LA48DtjHL8qbVaeEM9S2RHjfyjd01eUkLaChFxs YwMYhQsWYCnjXMmLxcRmHEk2lml+mE74a6leEFUvqzLiheE6jocpEyhUmDcLaYX4Ju aKnCZ9AeNKe916nVRkIL0XH0+PrsYhEwLJqlNCPU= Message-ID: <53690891.8040307@poczta.onet.pl> Date: Tue, 06 May 2014 18:06:41 +0200 From: Jarek Czekalski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: 17408-done@debbugs.gnu.org Subject: bug#17408: 24.4.50; tooltips make ms-window go top Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 17408-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Applied as r117073 to emacs-24 branch [1]. Will be included in version 24.4. http://bzr.savannah.gnu.org/lh/emacs/emacs-24/revision/117073 From unknown Wed Jun 18 23:14:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 04 Jun 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator