Skip to content
operational 3.58 KiB
Newer Older
* COMMENT -*- mode: org -*-
#+Date: 2019-09-02
Time-stamp: <2019-09-03>
#+STARTUP: content
* notes                                                               :entry:
* later                                                               :entry:
** 2019-09-03 bug: panel window should not get focus in GNOME 3 on Wayland.
currently panel keeps flashing when typing in this env.

it's focus-in focus-out problem.
when panel shows up, zero got a focus-out event, which it think user has
switched off emacs window, so it send hide() to panel. Now focus is back in
emacs, focus-in, zero wants to show the panel again. it's endless recursion.

The key problem is zero-panel should not receive focus in GNOME 3 shell.

I already set this in ui file:

    <property name="accept-focus">False</property>
    <property name="focus-on-map">False</property>

They don't work properly in Wayland.

Yuanle Song's avatar
Yuanle Song committed
- see minimal test application at ~/c/testing-only/do-not-focus/main.c

* current                                                             :entry:
** 
** 2019-09-02 support user configuration of theme and panel orientation.
is it supported by zero-el?
** 2019-09-02 remove black bg in round corner. should be transparent.
is it because I don't have a compositor that support alpha?
* done                                                                :entry:
** 2019-09-02 should I add README in deb file? where to install it to?
/usr/share/doc/zero-panel/README

- maybe also write a man page.
  /usr/share/man/man1/zero-panel.1.gz

  example man page
  /usr/share/man/man1/python3.5.1.gz
  /usr/share/man/man1/ls.1.gz generated by help-to-man

** 2019-09-02 issue: can't show panel in GNOME 3 shell
- it seems dbus message is resent quite a few times for the same preedit str.
  is it because I didn't send a response and dbus has auto resend?

  it's not dbus resend problem.

  I see the problem. it's focus-in focus-out problem.
  when panel shows up, zero got a focus-out event, which it think user has
  switched off emacs window, so it send hide() to panel. Now focus is back in
  emacs, focus-in, zero wants to show the panel again. it's endless recursion.

  The key problem is zero-panel should not receive focus in GNOME 3 shell.

- search: GNOME 3 shell gtk application how to add hint to not let a window get focus

  maybe it's running wayland?
  yes. confirmed only wayland is running, X is not.

  search: gtk wayland how to set hint so a window doesn't receive focus

  Using GTK+ with Wayland: GTK+ 3 Reference Manual
  https://developer.gnome.org/gtk3/stable/gtk-wayland.html

  GDK_BACKEND=wayland your-app
  that doesn't help.

  Initiatives/Wayland/GTK+ - GNOME Wiki!
  https://wiki.gnome.org/Initiatives/Wayland/GTK%2B

  search: wayland gtk3 accept-focus focus-on-map False doesn't work

  search: wayland gtk3 how to create a window that will not get focus

  1260773 – [GTK3][Wayland] Child popup gets focus-in, focus-out events
  https://bugzilla.redhat.com/show_bug.cgi?id=1260773

  [Firefox] gdk_device_grab() on popup drags focus from main app window on Wayland/mutter (#837) · Issues · GNOME / gtk · GitLab
  https://gitlab.gnome.org/GNOME/gtk/issues/837

- MOVED I can't fix this problem now. There is no doc on how to not get focus in
  wayland when a window is shown.

  search: how to not get focus in wayland when a window is shown

  Bug #1826176 “Applications do not receive focus in Wayland sessi...” : Bugs : gnome-shell package : Ubuntu
  https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1826176

** 2019-09-02 apply apache license.
* wontfix                                                             :entry: