From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Deiconifying GTK frames on GNOME shell Date: Fri, 10 Sep 2021 10:34:17 +0200 Message-ID: <366d9251-3609-9e0b-3d35-8af409af706a@gmx.at> References: <87e1a3cb-430d-ff6d-6244-6e20bbdced94@gmx.at> <635efeee-ffd5-28e3-d966-1086990b1aac@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9151"; mail-complaints-to="usenet@ciao.gmane.io" To: Madhu , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 10 10:36:39 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOc1X-00026k-1g for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Sep 2021 10:36:39 +0200 Original-Received: from localhost ([::1]:42100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOc1V-0007bl-1j for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Sep 2021 04:36:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mObzO-0004y4-UR for emacs-devel@gnu.org; Fri, 10 Sep 2021 04:34:26 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:56475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mObzM-0004hJ-Q4 for emacs-devel@gnu.org; Fri, 10 Sep 2021 04:34:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1631262858; bh=JltLM8JL/nCaeobEiOgA33XpRRngd5RVhIUdYRb9LKc=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=d3GDHsIKKAgRCvoDt3H4juJ9d+pMouNYLds4j2pRIgfyX5OEBHYZ5Pj/TgetZCy1r P0sT1FYjKhOQisQzRPaSrZYyd+xl6hJoNwBq6lFeWZ5Pe+mE1Gikd3AttmGQ5PCOx8 95LGoeQBheV+Dptm8fqJILRymHlvuOwuuIjtwhpU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.135]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MryTF-1mlawx14uT-00o0js; Fri, 10 Sep 2021 10:34:18 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:R7a0fp6mP7ADWzfUhObFCSm7QavP6KSwE33RW47/Kj46UgtBbPf Q0dO8yzc8C+snuN7IsC/vtVHiU3CC7Ek7w4F0fAIF2AZbrDs9/vLbGQC2Z4wR8qJJqEUuSA DRE3euE7z0Hm4Jy5cxcaEl8ji4iy4UO6rGECmgxMcC5XBCP/2df4ZX9Lm75iRJOEgWhKpM5 TJ0dR8xRR1I3Mb5FZmhXA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Z6uqrij2BHs=:vUAGt4ZkJ9beF1vqG7CFCs Gf3H4zVE3xtb+1VX94gdU8MUw739iIEWpKrgJ0dM4oeyHy6B0gubEzsS8SNt+0oNiWWH+ihRZ VyYtid560G5QWzTzGk8LrJLsxYeIlNbatNVROGtxV6YsLFE5b+w73UTVMSEYYRQqEXywk55HB O0+NLl344+i1UEi3MW1m+jvlggw47Q0AxuuR1N8dbVgQbQz3+r9hV05nJrq3XPcvWEP3cKLw9 ypnNsrclH8ZXvd7MZRtRPNBhp4+DLyzcmCCuNzlvwlbpBhEw8QDs4g0lnpIh4TYfpXh87sqgf uqSSszYw+++cJOyRKhf3/daINAwodt2gt902M5tR0QVL/6szJkXfGpLDqYfiKb2SZryzF7XUf O5A2ZatQ1+862LtMbrfA50E7wL32OfMftG8AaNPVqR9F2RlU8fRXRzgBxoGbInLUWF8XMZoUx k0UH7xkHkKz8HfHZUihlDi3KGQeJ5l2zKDgnziAnVUfW1dY147Xsay/9X3zrKhFE3Pic+8t/T iXikKDWoqK9G5iwu/2DmYBOBKGreiYtc8EH6CJizzbwhKWxI7amh5IwAeCAtcjy6X2kkLOKgp umggwoZikfhrg1cg1WSRY+OnqKlknfX/vz+D6ZCp1vhe/O8Ou/9ob/lnKze/kz2Plp4riMm2u Wo0qEUGusew/712EgRB1sSvsz7ZU7PAtkmZpPvn/NS1nvWVGW7cqIiYzLqCV9HpXd7vyB0ntw bbHjoFfcZqQ53zVZdCS3KV2Hm2u5uBEsuaNUBXVadWhchbzuEEN3Z45RdmfOhAfgWWj6UUro Received-SPF: pass client-ip=212.227.17.21; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274508 Archived-At: > [I thought I posted this workaround that I've been using at least since ... when? ... > - either on a bugreport or in a message to you - but I can't spot it in > my XMAIL] Have we been discussing this issue before? Have you (or anyone else) filed a report against it? No pointers anywhere? > (defadvice make-frame-visible (around mutter-workaround (&optional frame) activate) > (if (or (eql (frame-parameter frame 'visibility) 'icon) > (eql (frame-parameter frame 'visibility) nil)) > (set-frame-parameter frame 'visibility nil)) > ad-do-it) This works here for making the frame visible again. It fails for `raise-frame' and `select-frame-set-input-focus' but I think it should be possible to fix these with similar advices too. I don't understand yet how this x_make_frame_visible_invisible stuff is supposed to work in the first place and I haven't even found the commit that introduced it yet. Maybe it got fixed or broken during https://lists.gnu.org/r/emacs-devel/2018-03/msg00863.html so there should be also a timeout around somewhere. IIUC this could be a serious issue with frame switching on mutter so maybe either other people use a workaround like yours or they use a version of mutter where this problem doesn't happen. martin