naughty.notify: default to screen.focused()

This commit is contained in:
Daniel Hahler 2015-07-27 14:35:46 +02:00
parent fc950f6921
commit efe5358a0b
1 changed files with 3 additions and 3 deletions

View File

@ -18,6 +18,7 @@ local capi = { screen = screen,
awesome = awesome } awesome = awesome }
local timer = require("gears.timer") local timer = require("gears.timer")
local button = require("awful.button") local button = require("awful.button")
local screen = require("awful.screen")
local util = require("awful.util") local util = require("awful.util")
local bt = require("beautiful") local bt = require("beautiful")
local wibox = require("wibox") local wibox = require("wibox")
@ -384,8 +385,7 @@ end
-- Default: 5 -- Default: 5
-- @int args.hover_timeout Delay in seconds after which hovered popup disappears. -- @int args.hover_timeout Delay in seconds after which hovered popup disappears.
-- Default: nil -- Default: nil
-- @int args.screen Target screen for the notification. -- @int[opt=focused] args.screen Target screen for the notification.
-- Default: 1
-- @string args.position Corner of the workarea displaying the popups. -- @string args.position Corner of the workarea displaying the popups.
-- Values: `"top_right"` (default), `"top_left"`, `"bottom_left"`, -- Values: `"top_right"` (default), `"top_left"`, `"bottom_left"`,
-- `"bottom_right"`, `"top_middle"`, `"bottom_middle"`. -- `"bottom_right"`, `"top_middle"`, `"bottom_middle"`.
@ -438,7 +438,7 @@ function naughty.notify(args)
local icon_size = args.icon_size or preset.icon_size local icon_size = args.icon_size or preset.icon_size
local text = args.text or preset.text local text = args.text or preset.text
local title = args.title or preset.title local title = args.title or preset.title
local screen = args.screen or preset.screen local screen = args.screen or preset.screen or screen.focused()
local ontop = args.ontop or preset.ontop local ontop = args.ontop or preset.ontop
local width = args.width or preset.width local width = args.width or preset.width
local height = args.height or preset.height local height = args.height or preset.height