[gegl] lua: fix cairo save/restore balance
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] lua: fix cairo save/restore balance
- Date: Thu, 4 Apr 2019 02:12:26 +0000 (UTC)
commit 347b08fed958ece2a497147c54d8838f534d39cc
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Apr 4 04:10:56 2019 +0200
lua: fix cairo save/restore balance
A missing cr:restore() was causing the client side drawn titlebar of
gtk+ to be offset under wayland.
bin/lua/viewer.lua | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/bin/lua/viewer.lua b/bin/lua/viewer.lua
index 97799920e..a8070935f 100644
--- a/bin/lua/viewer.lua
+++ b/bin/lua/viewer.lua
@@ -308,12 +308,6 @@ if o.is_video ~= 0 then
event:stop_propagate()
end)
cr:new_path()
-
-
-
-
-
-
end
@@ -396,3 +390,5 @@ mrg:add_binding("control-y", NULL, "toggle display profile",
mrg:add_binding("control-delete", NULL, "discard",
function() ffi.C.argvs_eval ("discard") end)
+
+cr:restore()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]