Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug when primary screen is not the 1st screen #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions config/awesome/elemental/app_drawer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,19 @@ restart_awesome:buttons(gears.table.join(
awful.button({ }, 1, awesome.restart)
))

-- Create the widget
app_drawer = wibox({visible = false, ontop = true, type = "dock"})
awful.placement.maximize(app_drawer)

app_drawer.bg = "#00000000"
-- app_drawer.bg = beautiful.app_drawer_bg or x.background or "#111111"
app_drawer.fg = beautiful.app_drawer_fg or x.foreground or "#FEFEFE"
function app_drawer_create(s)
app_drawer = wibox({visible = false, ontop = true, type = "dock", screen = s})
awful.placement.maximize(app_drawer)
app_drawer.bg = "#00000000"
-- app_drawer.bg = beautiful.app_drawer_bg or x.background or "#111111"
app_drawer.fg = beautiful.app_drawer_fg or x.foreground or "#FEFEFE"
return app_drawer
end

-- Add app drawer or mask to each screen
for s in screen do
if s == screen.primary then
s.app_drawer = app_drawer
s.app_drawer = app_drawer_create(s)
else
s.app_drawer = helpers.screen_mask(s, beautiful.lock_screen_bg or beautiful.exit_screen_bg or x.background)
end
Expand Down