config: restore notification-inline-replies option

parent 03a5a6c2
......@@ -109,6 +109,15 @@ config file to be able to detect config errors
description: Width of the notification in pixels
*notification-inline-replies* ++
type: boolean ++
default: false ++
description: If notifications should display a text field to reply ++
if the sender requests it. NOTE: Replying in popup ++
notifications is only available if the compositor ++
supports GTK Layer-Shell ON_DEMAND keyboard interactivity.
*notification-window-preferred-output* ++
type: string ++
default: "" ++
......
......@@ -13,6 +13,7 @@
"control-center-margin-right": 8,
"control-center-margin-left": 0,
"notification-window-width": 400,
"notification-inline-replies": false,
"notification-body-image-height": 160,
"notification-body-image-width": 200,
"timeout": 4,
......
......@@ -498,6 +498,12 @@ namespace XimperShellNotificationCenter {
public int notification_window_width { get; set; default = 500; }
/**
* If notifications should display a text field to reply
* if the sender requests it.
*/
public bool notification_inline_replies { get; set; default = false; }
/**
* The preferred output to open the notification window (popup notifications).
*
* Can either be the monitor connector name (ex: "DP-1"),
......
......@@ -116,6 +116,11 @@
"description": "Width of the notification in pixels",
"default": 500
},
"notification-inline-replies": {
"type": "boolean",
"description": "If notifications should display a text field to reply if the sender requests it. NOTE: Replying in popup notifications is only available if the compositor supports GTK Layer-Shell ON_DEMAND keyboard interactivity.",
"default": false
},
"notification-window-preferred-output": {
"type": "string",
"description": "The preferred output to open the notification window (popup notifications). Can either be the monitor connector name (ex: \"DP-1\"), or the full name, manufacturer model serial (ex: \"Acer Technologies XV272U V 503023B314202\"). If the output is not found, the currently focused one is picked"
......
......@@ -516,6 +516,9 @@ namespace XimperShellNotificationCenter {
private void set_inline_reply () {
// Reset state
inline_reply_box.set_visible (false);
if (!ConfigModel.instance.notification_inline_replies) {
return;
}
// Only show inline replies in popup notifications if the compositor
// supports ON_DEMAND layer shell keyboard interactivity
if (ConfigModel.instance.layer_shell
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment