The wayland session allows ilia to be spawned multiple times, causing stacked instances that need to be closed manually. This change refactors the main function to use Gtk.Application, which inherently ensures that only a single instance of the application is allowed to run. It also cleans up the Main.vala file by moving the all th application startup related logic to Application.vala.
To reproduce the issue, you can open multiple instances of ilia by holding down Super and pressing the space key more than once on the sway session without releasing Super.
The wayland session allows ilia to be spawned multiple times, causing stacked instances that need to be closed manually. This change refactors the main function to use Gtk.Application, which inherently ensures that only a single instance of the application is allowed to run. It also cleans up the Main.vala file by moving the all th application startup related logic to Application.vala.
To reproduce the issue, you can open multiple instances of ilia by holding down Super and pressing the space key more than once on the sway session without releasing Super.