@@ -26,7 +26,7 @@ local logout_menu_widget = wibox.widget {
26
26
layout = wibox .container .margin
27
27
},
28
28
shape = function (cr , width , height )
29
- gears .shape .rounded_rect (cr , width , height , 4 )
29
+ gears .shape .rounded_rect (cr , width , height , 4 )
30
30
end ,
31
31
widget = wibox .container .background ,
32
32
}
@@ -58,11 +58,11 @@ local function worker(user_args)
58
58
local onpoweroff = args .onpoweroff or function () awful .spawn .with_shell (" shutdown now" ) end
59
59
60
60
local menu_items = {
61
- { name = ' Log out' , icon_name = ' log-out.svg' , command = function () logout_menu_widget : set_bg ( ' #00000000 ' ) onlogout () end },
62
- { name = ' Lock' , icon_name = ' lock.svg' , command = function () logout_menu_widget : set_bg ( ' #00000000 ' ) onlock () end },
63
- { name = ' Reboot' , icon_name = ' refresh-cw.svg' , command = function () logout_menu_widget : set_bg ( ' #00000000 ' ) onreboot () end },
64
- { name = ' Suspend' , icon_name = ' moon.svg' , command = function () logout_menu_widget : set_bg ( ' #00000000 ' ) onsuspend () end },
65
- { name = ' Power off' , icon_name = ' power.svg' , command = function () logout_menu_widget : set_bg ( ' #00000000 ' ) onpoweroff () end },
61
+ { name = ' Log out' , icon_name = ' log-out.svg' , command = onlogout },
62
+ { name = ' Lock' , icon_name = ' lock.svg' , command = onlock },
63
+ { name = ' Reboot' , icon_name = ' refresh-cw.svg' , command = onreboot },
64
+ { name = ' Suspend' , icon_name = ' moon.svg' , command = onsuspend },
65
+ { name = ' Power off' , icon_name = ' power.svg' , command = onpoweroff },
66
66
}
67
67
68
68
for _ , item in ipairs (menu_items ) do
@@ -109,6 +109,7 @@ local function worker(user_args)
109
109
110
110
row :buttons (awful .util .table .join (awful .button ({}, 1 , function ()
111
111
popup .visible = not popup .visible
112
+ logout_menu_widget :set_bg (' #00000000' )
112
113
item .command ()
113
114
end )))
114
115
0 commit comments