diff options
Diffstat (limited to 'pager.lua')
-rw-r--r-- | pager.lua | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -91,6 +91,11 @@ local function pager_set_active(self, screen, page_idx) end local function pager_set_desktop(self, desktop) + if self._desktop == desktop then + print('same desktop') + return + end + local init_data = self.init_data print("pager " .. init_data.screen.index .. " set desktop") @@ -126,6 +131,8 @@ local function pager_set_desktop(self, desktop) desktop:connect_signal("page:view", function(desktop, s, page_idx) pager_set_active(self, s, page_idx) end) + + self._desktop = desktop end local Pager = {} |