wibox.drawable: Assert that no cairo error occurred
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
eef2045954
commit
a7902f6260
|
@ -12,6 +12,7 @@ local capi = {
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
local cairo = require("lgi").cairo
|
local cairo = require("lgi").cairo
|
||||||
local color = require("gears.color")
|
local color = require("gears.color")
|
||||||
|
local debug = require("gears.debug")
|
||||||
local object = require("gears.object")
|
local object = require("gears.object")
|
||||||
local sort = require("gears.sort")
|
local sort = require("gears.sort")
|
||||||
local surface = require("gears.surface")
|
local surface = require("gears.surface")
|
||||||
|
@ -59,6 +60,8 @@ local function do_redraw(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
self.drawable:refresh()
|
self.drawable:refresh()
|
||||||
|
|
||||||
|
debug.assert(cr.status == "SUCCESS", "Cairo context entered error state: " .. cr.status)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Register a widget's position.
|
--- Register a widget's position.
|
||||||
|
|
Loading…
Reference in New Issue