From 92e411da972fe8a2ab0297c01e96ab76d72e498e Mon Sep 17 00:00:00 2001 From: Aurélien LAJOIE Date: Wed, 15 Apr 2020 19:00:10 +0200 Subject: Display the notification on the current screen --- battery-widget/battery.lua | 2 ++ volume-widget/volume.lua | 1 + weather-widget/weather.lua | 1 + 3 files changed, 4 insertions(+) diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index d84e591..919fb60 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -84,6 +84,7 @@ local function worker(args) position = position, timeout = 5, hover_timeout = 0.5, width = 200, + screen = mouse.screen } end ) @@ -109,6 +110,7 @@ local function worker(args) bg = "#F06060", fg = "#EEE9EF", width = 300, + screen = mouse.screen } end local last_battery_check = os.time() diff --git a/volume-widget/volume.lua b/volume-widget/volume.lua index 652c39b..d7334eb 100644 --- a/volume-widget/volume.lua +++ b/volume-widget/volume.lua @@ -81,6 +81,7 @@ local function notif(msg, keep) position = volume.position, timeout = keep and 0 or 2, hover_timeout = 0.5, width = 200, + screen = mouse.screen } end end diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua index 6fafa97..5aaf426 100644 --- a/weather-widget/weather.lua +++ b/weather-widget/weather.lua @@ -210,6 +210,7 @@ local function worker(args) 'Wind: ' .. resp.wind.speed .. 'm/s (' .. to_direction(resp.wind.deg) .. ')', timeout = 5, hover_timeout = 10, position = position, + screen = mouse.screen, width = (both_units_popup == true and 210 or 200) } end) -- cgit v1.2.3