summaryrefslogtreecommitdiff
path: root/xmake/core/ui/program.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-18 22:35:15 +0800
committerruki <[email protected]>2018-01-18 09:31:31 +0800
commitafdb22dcfeb898e051ed360fce04152b861aa3ad (patch)
tree5a8f56a1a527b86b282a1bb726fe1c497c6ef04e /xmake/core/ui/program.lua
parent921a48f8332381d30c814419bfa05230155d342c (diff)
improve bounds for view
Diffstat (limited to 'xmake/core/ui/program.lua')
-rw-r--r--xmake/core/ui/program.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/ui/program.lua b/xmake/core/ui/program.lua
index 82ada0bcf..ff152584f 100644
--- a/xmake/core/ui/program.lua
+++ b/xmake/core/ui/program.lua
@@ -156,10 +156,11 @@ function program:event_on(e)
-- do event for focused views
while focused_view and focused_view ~= self do
+ local parent = focused_view:parent()
if focused_view:event_on(e) then
return true
end
- focused_view = focused_view:parent()
+ focused_view = parent
end
-- quit program?