From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#11732: Follow-up to bug#11732 Date: Fri, 29 Jun 2018 10:43:12 +0200 Message-ID: <5B35F120.9040807@gmx.at> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1530261735 26383 195.159.176.226 (29 Jun 2018 08:42:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2018 08:42:15 +0000 (UTC) Cc: 11732@debbugs.gnu.org To: Eli Zaretskii , Masayuki Hatta Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 29 10:42:10 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 1fYoyl-0006hT-Ik for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jun 2018 10:42:07 +0200 Original-Received: from localhost ([::1]:40643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYp0t-0007Ke-24 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jun 2018 04:44:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYp0f-0007Hm-Tx for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 04:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYp0c-0006u7-PM for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 04:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59559) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYp0c-0006tW-LW for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 04:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fYp0c-0007sv-EL for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 04:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jun 2018 08:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11732 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 11732-submit@debbugs.gnu.org id=B11732.153026180130239 (code B ref 11732); Fri, 29 Jun 2018 08:44:02 +0000 Original-Received: (at 11732) by debbugs.gnu.org; 29 Jun 2018 08:43:21 +0000 Original-Received: from localhost ([127.0.0.1]:39220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYozw-0007re-V3 for submit@debbugs.gnu.org; Fri, 29 Jun 2018 04:43:21 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:39659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYozv-0007rR-D5 for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 04:43:19 -0400 Original-Received: from [192.168.1.101] ([213.162.73.36]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LxPgU-1gEvG70Wd8-016vF6; Fri, 29 Jun 2018 10:43:13 +0200 In-Reply-To: <83y3f0p6n7.fsf@gnu.org> X-Provags-ID: V03:K1:Y7dfA6Puj0xCayt35ul1VHO0pbJbiU4PkYZ4tjbw2JJ4fkneYXX vFvkbHsVjvTvgXLIS+ynwbKZiWfJPHob+RJWIzA1InweAfFo2FuEcDuoK82Wjqaw7RXut7c 3VaedC0EwANt82zK6IzkeY029rgE/dLQ6SHs/4YkqeXWDkPAHevZ5awLA6ytFD1/PQ9a9fJ 2fkdzODUgjB2ACWxG7jqA== X-UI-Out-Filterresults: notjunk:1;V01:K0:AdCkXM5XnAk=:dp7Z4QgHYb6yUmi8WDQyjz pSHs2AYUBUj8i6+sB52/L+Z8sXui9SO7ZtSms9yuQxeWsbFf1pNZ9imdxnK0S6WDXot7OkLKF PPdlf21/7Q4uuNv8yv0u7o5uBIowxh8kTwmrLhcX73SI5Wi9UbcAda559tP6HVBe9n0D02yMd ieoY7wZUDUTpCIylywrjglu4oSA7a3ralVylMbphYeCjv5SvEGgFjZsOtYk5ONBcuWsAeIs2O cArA69arvwZ/5b3zKZCkJ29uzbiNGkCfP0k8kY8z04J8c3VPSh4eFiFNZP76Hg2E/ScSWXqmh /NlC4nxeY16qhQKvaEWq91w2CwVrvJGB44ln33ifeLcb95DOHYfU+up2zlegMXCcqRdK7obe/ gzMwnABGkVgrCKb8I3R30zcaKl5xLsSqjkdFvW55iy0pDq9e7qz8+0b+PpIzmQuwXRNLZ2Xbb jmhIsGU17vXwHu7GRlXUoMpji1hiRBmPDBt49jFpCxYCX/afTviaxVDUeCARnLN7su881F7rC SZ6WPMv56i6B79tcmKPhKUMh4ykPRIfax6bJHSZ/3lg6d/krYRz0bZDM0ED4W1vFQk/rspPx1 WAVF9TtECZVrSf12lytc+q0Te3+/qaT2jDSWEFt4bggNR4oBxvOg/ul76+cGgF+eRg+FSEs1+ 5i0glMZpXohosqY1H+ZDlysztzC717LrOOzlXN0Xo9Iak3KGhhagRrCa6HFZIE9x+r/NYDZfg 3Lh0BRd0dDWf648rS+N2vnJnBsm8p0ND2+sJTr0y2dFtEqBa+YnlGs831DGZMog8GKk3ohJK 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:147944 Archived-At: >> Tested with "File -> Open File" dialog and "(w32-font-select)" dialog. >> Both seem to work. > > By "work", do you mean that clicking on anywhere inside these dialogs > leaves the dialogs visible? On 2 different systems where I tried > this, after applying the patch, clicking anywhere in the dialog box > after it opens causes the dialog box to disappear: it is moved in z > order behind the frame from which the dialog was started. > > It's possible that this is somehow related to the fact that I have my > Windows systems configured to enable "active window tracking" > (a.k.a. "focus follows mouse"), but even so, I'd like to be able to > avoid that adverse side effect on systems that are so configured. I now tried on my standard XP machine and do not see any adverse effects with file, directory and font dialog boxes. Maybe it's related to the fact that I have "focus follows mouse" plus "autoraise". Could you try with such a setting? I am very reluctant to change mine becaue I have some additional mouse software working as well. > + SetWindowPos (dialog, HWND_TOPMOST, 0, 0, 0, 0, > + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE > + | SWP_NOOWNERZORDER); > + SetWindowPos (FRAME_W32_WINDOW (SELECTED_FRAME ()), > + dialog, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); What was the more or less precise rationale for this unless it was pure experimenting (in particular the SWP_NOACTIVATE in the first call)? The patch does not have any (adverse) effects here so if it solves the problem for you, I see no problem applying it. > then how do > we solve a similar problem in x-select-font? It doesn't have a > callback function, and if I try adding one, the appearance of the > dialog changes(??) and the OK and CANCEL buttons no longer work. Can you send me the code you tried? > Also, w32_dialog_in_progress seems to try to solve some similar > problem, but is not really working? I guess I simply don't understand > why the dialog is lowered when I click on it. In w32_dialog_in_progress I tried to solve a relatively simple problem: When a frame is in the TOPMOST group and I start a dialog, that frame would obscure the dialog box. So I temporarily remove the frame from the TOPMOST group and move it back when the dialog ends. martin