diff --git a/lib/awful/screen.lua b/lib/awful/screen.lua index 162628cf..253bd7be 100644 --- a/lib/awful/screen.lua +++ b/lib/awful/screen.lua @@ -230,7 +230,11 @@ end -- present currently. function screen.focused(args) args = args or screen.default_focused_args or {} - return get_screen(args.client and capi.client.screen or capi.mouse.screen) + return get_screen( + (args.client and args.client.screen) or + (capi.client.focus and capi.client.focus.screen) or + capi.mouse.screen + ) end --- Get a placement bounding geometry.