Newer
Older
* COMMENT -*- mode: org -*-
#+Date: 2019-09-02
#+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.
- see minimal test application at ~/c/testing-only/do-not-focus/main.c
** 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
** 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: