all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Deiconifying GTK frames on GNOME shell
@ 2021-09-05  9:39 martin rudalics
  2021-09-05 10:26 ` Colin Baxter
  2021-09-05 19:19 ` Dmitry Gutov
  0 siblings, 2 replies; 25+ messages in thread
From: martin rudalics @ 2021-09-05  9:39 UTC (permalink / raw)
  To: emacs-devel

When running a GTK3 build of Emacs on GNOME shell, the following
sequence of actions

(setq frame (make-frame))
(iconify-frame frame)
(make-frame-visible frame)

does not produce a visible frame here.  Rather, the frame stays
iconified although (frame-visible-p frame) for it returns t.
(raise-frame frame) and (select-frame-set-input-focus frame) do not work
either.  A similar problem happens when running Emacs under the
Enlightenment WM.

I invite users running Emacs under GNOME shell to tell us whether they
see the same behavior or whether the above sequence of operations works
as intended.

This affects all frame management routines calling candidate_frame and
people who customized `frame-auto-hide-function' to `iconify-frame'.  In
particular, if you show the minibuffer in a separate frame, you cannot
raise that frame from Emacs once you have iconified it.

If we decide that this is a bug _we_ want to fix then I can offer the
following changes which seem to make things work here:

(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.

I have no idea whether and how these changes might affect other builds
so making these customizable might be a good idea.  But first I'd like
to know whether we really care about this issue.  Since I use GNOME
shell for testing purposes only, I do not care personally.

Thanks in advance, martin



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2021-12-09  9:20 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-05  9:39 Deiconifying GTK frames on GNOME shell martin rudalics
2021-09-05 10:26 ` Colin Baxter
2021-09-06  8:31   ` martin rudalics
2021-09-05 19:19 ` Dmitry Gutov
2021-09-06  8:32   ` martin rudalics
2021-09-07  0:45     ` Dmitry Gutov
2021-09-07  8:16       ` martin rudalics
2021-09-09 13:13         ` Madhu
2021-09-10  8:34           ` martin rudalics
2021-09-10 12:04             ` Madhu
2021-09-11  8:38               ` martin rudalics
2021-12-06 15:35                 ` Madhu
2021-12-08 11:00                   ` martin rudalics
2021-12-08 11:09                     ` Po Lu
2021-12-08 16:02                       ` Yuuki Harano
2021-12-09  0:28                         ` Po Lu
2021-12-09  2:30                           ` Madhu
2021-12-09  2:46                             ` Po Lu
2021-12-09  9:20                               ` Eli Zaretskii
2021-12-08 16:33                       ` Madhu
2021-12-09  0:31                         ` Po Lu
2021-12-09  2:33                           ` Madhu
2021-09-10  8:33       ` martin rudalics
2021-09-11 14:48         ` Dmitry Gutov
2021-09-11 16:43           ` martin rudalics

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.