diff options
author | Bastien Nocera <hadess@hadess.net> | 2020-04-27 17:27:06 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2020-04-27 17:27:06 +0200 |
commit | b5d3294a4c06a97a3f6e7f6b51a397f2d6a734d5 (patch) | |
tree | e82c045d53011caa3cae5c96e6e10f007623e864 | |
parent | 3108a5c206a53139ac987a2eda8eb17fcff5c41b (diff) |
Add support for PrefersNonDefaultGPU .desktop keywip/hadess/add-PrefersNonDefaultGPU
And deprecate KDE's X-KDE-RunOnDiscreteGpu.
See: https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/13
-rw-r--r-- | src/validate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/validate.c b/src/validate.c index b6ed869..42f1d28 100644 --- a/src/validate.c +++ b/src/validate.c @@ -323,6 +323,9 @@ static DesktopKeyDefinition registered_desktop_keys[] = { { DESKTOP_BOOLEAN_TYPE, "DBusActivatable", FALSE, FALSE, FALSE, handle_dbus_activatable_key }, + /* Since 1.4 */ + { DESKTOP_BOOLEAN_TYPE, "PrefersNonDefaultGPU", FALSE, FALSE, FALSE, NULL }, + /* Keys reserved for KDE */ /* since 0.9.4 */ @@ -355,6 +358,8 @@ static DesktopKeyDefinition registered_desktop_keys[] = { /* since 0.9.6 */ { DESKTOP_STRING_LIST_TYPE, "SortOrder", FALSE, TRUE, FALSE, NULL }, { DESKTOP_REGEXP_LIST_TYPE, "FilePattern", FALSE, TRUE, FALSE, NULL }, + /* since 1.4 */ + { DESKTOP_BOOLEAN_TYPE, "X-KDE-RunOnDiscreteGpu", FALSE, TRUE, FALSE, NULL }, /* Keys from other specifications */ |