The issue was: Keys like XK_Backspace and XK_Enter sends the wrong keys.
Reason: gdk_keymap_get_entries_for_keyval return multiple combinations
of keycodes, i.e XK_Enter returns
(key=36, modifier=0) [Enter], [Mod4]+p,
(key=55, modifier=32) [Mod4]+p,
(key=55, modifier=33) [Mod4]+[Shift]+p
The latest version is returned, but collides with this 'bugfix':
'if( keymod.modifiers == 33 ) keymod.modifiers = 0;'
Solution:
Return first version (36, 0). Moreover the 'bugfix' is commented out,
but this had to recheck on several systems.
- Makefile: Do not rebuild app for install target
- Show/Hide-Bug: Prevent window position at screen center in i3-wm.
- Set parent window option of about dialog.
- Switch from Gtk.VBox to Gtk.Box.
- Switch from Gdk.x11_get_default_xdisplay() to Gdk.X11.get_default_xdisplay()
- Switch from Gdk.x11_get_default_root_xwindow() to Gdk.X11.get_default_root_xwindow()
• Änderung des Namens der Konfigurationsdatei:
.neo_layout_viewer.conf => neo_layout_viewer.conf
(Da sie standardmäßig im '.config'-Verzeichnis erstellt wird, braucht
sie nicht „doppelt“ versteckt werden.)
• Bugfix Icon-Pfad von Indicator-Applet war irrtümlich fixiert und wird
nun aus dem Asset-Pfad abgeleitet.
• Neben ./asset wird nun auch ../asset als möglicher Standort für die
Grafiken angenommen.
• Info-Popup: Zeigt nun an, welche Config-Datei geladen wurde.
• Makefile baut neues Binary nur noch bei geänderten Sourcen oder geänderten
Umgebungsvariablen.
• Info-Popup: Zeigt git-commit id an.
• Die virtuelle Tastatur funktioniert jetzt wieder für alle Ebenen.
Vorher gab es ein Problem auf der ersten Ebene, bei dem als
Modifier-Maske 33 ausgewählt wird, obwohl sie 0 sein müsste. Dieser
Fehler tritt aber nur auf, wenn das Neo-Layout aktiviert war. Als
Workaround wird nun die Maske 33 auf 0 gemappt.
• Die Konfigurationsdatei wurde jetzt nicht mehr mehrfach angelegt. Es gibt drei
Standardpfade unter denen die Konfiguration gesucht wird. Durch Wahl der
falschen Vergleichsvariable wurde die Konfigurationsdatei
.neo_layout_viewer.conf aber nur im aktuellen Verzeichnis gesucht.
If a second instance will be started the window of the first instance
will be toggled (and not shown). Now, it's possible to map the
toggle-window shortcut on the same key binding as the
(external) application start.
• Add new config file option: show_on_startup