From e03f2bbe08176338f1ae9d53c5b478cdda1df815 Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Thu, 1 Aug 2019 14:53:13 -0400 Subject: [PATCH] minor --- switcher.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/switcher.lua b/switcher.lua index dc3da95..7bdc371 100644 --- a/switcher.lua +++ b/switcher.lua @@ -98,9 +98,6 @@ local function start(c) local msg, ext for i, a in ipairs(regions) do - -- cr:rectangle(a.x - start_x, a.y - start_y, a.width, a.height) - -- cr:clip() - if a.x <= traverse_x and traverse_x < a.x + a.width and a.y <= traverse_y and traverse_y < a.y + a.height then @@ -154,6 +151,8 @@ local function start(c) end end + cr:rectangle(a.x - start_x, a.y - start_y, a.width, a.height) + cr:clip() -- cr:set_source(fill_color) -- cr:rectangle(a.x, a.y, a.width, a.height) -- cr:fill()