A second instance of the app now waits until
it sends it's messages to the primary one.
This fixes issue #12 .
New command line options:
--version --layer --hide --show --toggle
--move --pos and --quit
They can be used to send commands to the primary
instance of the app.
Replace Fixed-Container by Layout-Container to
disconnects the window size from the content size.
Otherwise the window size can be increased but not
decreased.
Changes in config-manager:
Add 'color_event_box' option for debugging.
Changes in main window:
The Gtk.Images was replaced by ScalingImage-objects. They reacts
on window size changes.
Changes in key overlay:
The combination of 1 VBox + 6 Hboxes was replaced by one Gtk.Layout
element. A signal handler connects the element with window size changes.
libunique-3.0 should not be used in Gtk3 application anymore.
Its functionality was replaced by Gtk.Application.
Moreover, the argument 1-5 now looks the displayed layer
again changes by key events.
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