Skip to content

Commit

Permalink
Fixed color issue in tag preview that messed up blur
Browse files Browse the repository at this point in the history
  • Loading branch information
javacafe01 committed Aug 3, 2021
1 parent 00d9402 commit 0d156d8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions widget/tag_preview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ local function draw_widget(tag_preview_box, t, tag_preview_image, scale,
client_list,
forced_height = geo.height,
forced_width = geo.width,
bg = widget_bg,
widget = wibox.container.background
widget = wibox.container.place
},
layout = wibox.layout.align.horizontal
},
Expand All @@ -126,15 +125,15 @@ end

local enable = function(opts)
local opts = opts or {}

local tag_preview_image = opts.show_client_content or false
local widget_x = opts.x or dpi(20)
local widget_y = opts.y or dpi(20)
local scale = opts.scale or 0.2
local work_area = opts.honor_workarea or false
local padding = opts.honor_padding or false
local placement_fn = opts.placement_fn or nil

local margin = beautiful.tag_preview_widget_margin or dpi(0)
local screen_radius = beautiful.tag_preview_widget_border_radius or dpi(0)
local client_radius = beautiful.tag_preview_client_border_radius or dpi(0)
Expand Down Expand Up @@ -182,12 +181,12 @@ local enable = function(opts)

awesome.connect_signal("bling::tag_preview::visibility", function(s, v)
if placement_fn then
placement_fn(tag_preview_box)
placement_fn(tag_preview_box)
else
tag_preview_box.x = s.geometry.x + widget_x
tag_preview_box.y = s.geometry.y + widget_y
tag_preview_box.x = s.geometry.x + widget_x
tag_preview_box.y = s.geometry.y + widget_y
end

tag_preview_box.visible = v
end)
end
Expand Down

0 comments on commit 0d156d8

Please sign in to comment.