Add icon and desktop file
This commit is contained in:
10
src/config.h.in
Normal file
10
src/config.h.in
Normal file
@@ -0,0 +1,10 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
/* Copyright (C) 2019 cyclopsian */
|
||||
|
||||
#ifndef WDISPLAY_CONFIG_H
|
||||
#define WDISPLAY_CONFIG_H
|
||||
|
||||
#define WDISPLAYS_APP_ID "@app_id@"
|
||||
#define WDISPLAYS_VERSION "@version@"
|
||||
|
||||
#endif
|
||||
@@ -1365,7 +1365,7 @@ static void activate(GtkApplication* app, gpointer user_data) {
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
g_setenv("GDK_GL", "gles", FALSE);
|
||||
GtkApplication *app = gtk_application_new("org.swaywm.sway-outputs", G_APPLICATION_FLAGS_NONE);
|
||||
GtkApplication *app = gtk_application_new(WDISPLAYS_APP_ID, G_APPLICATION_FLAGS_NONE);
|
||||
g_signal_connect(app, "activate", G_CALLBACK(activate), NULL);
|
||||
int status = g_application_run(G_APPLICATION(app), argc, argv);
|
||||
g_object_unref(app);
|
||||
|
||||
@@ -7,6 +7,8 @@ gtk = dependency('gtk+-3.0')
|
||||
assert(gdk.get_pkgconfig_variable('targets').split().contains('wayland'), 'Wayland GDK backend not present')
|
||||
epoxy = dependency('epoxy')
|
||||
|
||||
configure_file(input: 'config.h.in', output: 'config.h', configuration: conf)
|
||||
|
||||
executable(
|
||||
'wdisplays',
|
||||
[
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#ifndef WDISPLAY_WDISPLAY_H
|
||||
#define WDISPLAY_WDISPLAY_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#define HEADS_MAX 64
|
||||
#define HOVER_USECS (100 * 1000)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user