From f44f92a8646fb788a651eb6209e28099370aad9d Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sat, 12 Aug 2023 01:27:03 +0200 Subject: [PATCH] Kobo: Run Generic:init dead last, like every other platform This is semantically more correct, and should prevent platform-specific weirdness if an ordering concern ever comes up (e.g., like it did for the viewport stuff). --- frontend/device/kobo/device.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index 1f1c04bc4..4b88960a4 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -816,10 +816,6 @@ function Kobo:init() -- And then handle the extra shenanigans if necessary. self:initEventAdjustHooks() - -- Let generic properly setup the standard stuff - -- (*after* we've set our input hooks, so that the viewport translation runs last). - Generic.init(self) - -- Various HW Buttons, Switches & Synthetic NTX events self.ntx_fd = self.input.open(self.ntx_dev) -- Dedicated Power Button input device (if any) @@ -898,6 +894,10 @@ function Kobo:init() if G_reader_settings:isTrue("input_no_key_repeats") then self:toggleKeyRepeat(false) end + + -- Finally, Let Generic properly setup the standard stuff. + -- (Of particular import, this needs to come *after* we've set our input hooks, so that the viewport translation runs last). + Generic.init(self) end function Kobo:exit()