Make use of the screen prop
This commit is contained in:
parent
87f50e7661
commit
38e3d033cd
|
@ -593,6 +593,7 @@ local function build_widget(self)
|
||||||
|
|
||||||
self._private.widget = awful.popup
|
self._private.widget = awful.popup
|
||||||
{
|
{
|
||||||
|
screen = self.screen,
|
||||||
type = self.type,
|
type = self.type,
|
||||||
visible = false,
|
visible = false,
|
||||||
ontop = true,
|
ontop = true,
|
||||||
|
@ -678,8 +679,6 @@ end
|
||||||
function app_launcher:show()
|
function app_launcher:show()
|
||||||
if self.show_on_focused_screen then
|
if self.show_on_focused_screen then
|
||||||
self._private.widget.screen = awful.screen.focused()
|
self._private.widget.screen = awful.screen.focused()
|
||||||
else
|
|
||||||
self._private.widget.screen = capi.screen.primary
|
|
||||||
end
|
end
|
||||||
|
|
||||||
self._private.widget.visible = true
|
self._private.widget.visible = true
|
||||||
|
|
Loading…
Reference in New Issue