From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.devel Subject: Re: Deiconifying GTK frames on GNOME shell Date: Thu, 09 Sep 2021 18:43:01 +0530 Message-ID: References: <87e1a3cb-430d-ff6d-6244-6e20bbdced94@gmx.at> <635efeee-ffd5-28e3-d966-1086990b1aac@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19160"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Cancel-Lock: sha1:1tvf+bkWGgsDCwS1vJgpPi9iNWo= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 09 15:14:37 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 1mOJsy-0004l8-KT for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Sep 2021 15:14:36 +0200 Original-Received: from localhost ([::1]:59830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOJsx-0003rT-7T for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Sep 2021 09:14:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOJrn-0002Vf-MU for emacs-devel@gnu.org; Thu, 09 Sep 2021 09:13:24 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:39532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOJri-0008Ox-7F for emacs-devel@gnu.org; Thu, 09 Sep 2021 09:13:23 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mOJrc-00031i-1d for emacs-devel@gnu.org; Thu, 09 Sep 2021 15:13:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:274444 Archived-At: * martin rudalics <635efeee-ffd5-28e3-d966-1086990b1aac@gmx.at> : Wrote on Tue, 7 Sep 2021 10:16:02 +0200: >>> (1) In xterm.c swap the calls to >>> gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (f)); >>> gtk_window_deiconify (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f))); >>> (2) When trying to deiconify an iconified frame make it invisible first >>> and only then make it visible. >>> hack would work? >> Yes, that seems to work. Consistently. > Thanks for checking. > >> If I don't do (1), BTW, I can do (2) twice, and that also makes the >> frame visible. >> (make-frame-invisible frame) >> (make-frame-visible frame) >> (make-frame-invisible frame) >> (make-frame-visible frame) >> >> If I do (1), then doing (2) only once is sufficient. > > Interesting. I will check when I switch to GNOME next time. [I thought I posted this workaround that I've been using at least since - either on a bugreport or in a message to you - but I can't spot it in my XMAIL] (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)