summaryrefslogtreecommitdiff
path: root/pkgs/astal/src/widget/corners.lua
blob: d1a7755ccc85ea4f01bd1907fbddf7e5a775b42b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local astal = require("astal")
local Widget = require("astal.gtk3.widget")

return function(gdkmonitor)
	local Anchor = astal.require('Astal').WindowAnchor

	return Widget.Window({
		class_name = "corners",
		gdkmonitor = gdkmonitor,
		anchor = Anchor.TOP + Anchor.BOTTOM + Anchor.LEFT + Anchor.RIGHT,
		exclusivity = "EXCLUSIVE",
		setup = function(self)
			self.click_through = true
		end,
		Widget.Box({
			expand = true,
		})
	})
end