naughty: Fix a race condition which cause startup errors to be missed.
This commit will be "reverted" when the screen refactoring is merged since it has a better fix.
This commit is contained in:
parent
efbc707279
commit
c10312b511
|
@ -20,9 +20,13 @@ naughty.notification = require("naughty.notification")
|
|||
|
||||
-- Handle runtime errors during startup
|
||||
if capi.awesome.startup_errors then
|
||||
-- Wait until `rc.lua` is executed before creating the notifications.
|
||||
-- Otherwise nothing is handling them (yet).
|
||||
awesome.connect_signal("startup", function()
|
||||
naughty.emit_signal(
|
||||
"request::display_error", capi.awesome.startup_errors, true
|
||||
)
|
||||
end)
|
||||
end
|
||||
|
||||
-- Handle runtime errors after startup
|
||||
|
|
Loading…
Reference in New Issue