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: Fri, 10 Sep 2021 17:34:30 +0530 Message-ID: References: <87e1a3cb-430d-ff6d-6244-6e20bbdced94@gmx.at> <635efeee-ffd5-28e3-d966-1086990b1aac@gmx.at> <366d9251-3609-9e0b-3d35-8af409af706a@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="30703"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Cancel-Lock: sha1:gkkarAkTX0gKkAsH70kxEQIl0AU= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 10 14:07:29 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 1mOfJZ-0007jD-BQ for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Sep 2021 14:07:29 +0200 Original-Received: from localhost ([::1]:53982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOfJX-0004p3-6F for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Sep 2021 08:07:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOfGy-0001Ua-9F for emacs-devel@gnu.org; Fri, 10 Sep 2021 08:04:48 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:47282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOfGw-0001L6-HL for emacs-devel@gnu.org; Fri, 10 Sep 2021 08:04:48 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mOfGu-0003iC-BW for emacs-devel@gnu.org; Fri, 10 Sep 2021 14:04:44 +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:274513 Archived-At: * martin rudalics <366d9251-3609-9e0b-3d35-8af409af706a@gmx.at> : Wrote on Fri, 10 Sep 2021 10:34:17 +0200: >> [I thought I posted this workaround that I've been using at least since > ... when? ... a year at least (i have it in my October 2020 backup) >> - 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? Apparently not. I've noticed the problem since march last year - the mutter-wayland folk i chatted with at that time disclaimed any notion of "iconify", saying hiding a window does not change the state and this is required for live-previews when switching workspaces, etc. though they claimed full support for ewmh NET_WM_STATE_HIDDEN >> (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. no, I couldn't figure out how to make raise-frame (select a different frame and set input focus) work on mutter-wayland with gtkonly emacs. gdk's calls do not work. I think that's being punted, and relief is expected from some "xdg-activation protocol" > 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 The mutter model means invisible frames are still supposed to keep rendering - they just wont be composited on the main workspace. > 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. [I try use it once in a while - try to get it to do what I want, encounter problems, give up for a month, etc.]