From a5eb511f3437d111f3b348e725e0322647186be3 Mon Sep 17 00:00:00 2001 From: Rick Calixte <10281587+rcalixte@users.noreply.github.com> Date: Sun, 27 Nov 2022 18:03:07 -0500 Subject: [PATCH] Adding an option for notification screen selection Resolves #230 --- libcinnamon-desktop/cdesktop-enums.h | 7 ++++++ ...namon.desktop.notifications.gschema.xml.in | 22 +++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/libcinnamon-desktop/cdesktop-enums.h b/libcinnamon-desktop/cdesktop-enums.h index 35dbc82..32d662c 100644 --- a/libcinnamon-desktop/cdesktop-enums.h +++ b/libcinnamon-desktop/cdesktop-enums.h @@ -203,6 +203,13 @@ typedef enum C_DESKTOP_STYLUS_BUTTON_ACTION_DISABLED } CDesktopStylusButtonAction; +typedef enum +{ + C_DESKTOP_NOTIFICATION_SCREEN_DISPLAY_PRIMARY_SCREEN, + C_DESKTOP_NOTIFICATION_SCREEN_DISPLAY_ACTIVE_SCREEN, + C_DESKTOP_NOTIFICATION_SCREEN_DISPLAY_FIXED_SCREEN +} CDesktopNotificationScreenDisplay; + typedef enum { /* All bindings before _SEPARATOR are treated as diff --git a/schemas/org.cinnamon.desktop.notifications.gschema.xml.in b/schemas/org.cinnamon.desktop.notifications.gschema.xml.in index 52ce8d1..cef8d07 100644 --- a/schemas/org.cinnamon.desktop.notifications.gschema.xml.in +++ b/schemas/org.cinnamon.desktop.notifications.gschema.xml.in @@ -32,6 +32,28 @@ false Whether notifications are displayed on the bottom side of the screen + + 'primary-screen' + Define which screen(s) to use for displaying notifications + + This option provides control over how newly created notifications are displayed. + It has three possible values: "primary-screen" which shows notifications only on + the primary display, "active-screen" which shows subsequent notifications only on + the display where the mouse is located, and "fixed-screen" which shows + notifications on a fixed display number if it exists and the primary display if + it does not exist. + + + + 1 + Fixed screen number for displaying notifications + + The fixed display number to use for displaying notifications if it exists, + where the primary display is last. If the fixed screen number does + not exist, the primary display is used instead. + + 4 How long notifications are displayed before disappearing