MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / update_cursor_position

Method update_cursor_position

src/model_manager.py:16–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 def get_updated_area(self) -> tuple[int, int, int, int]:
15 """Return the last known model area and queue a refresh on the GTK thread."""
16 GLib.idle_add(self._update_area)
17 return self.puppet.model_x, self.puppet.model_y, self.puppet.model_width, self.puppet.model_height
18
19 def _update_area(self) -> bool:
20 self.puppet.update_area()
21 return GLib.SOURCE_REMOVE

Callers 1

update_loopFunction · 0.80

Calls 2

get_cursor_positionMethod · 0.45
lookMethod · 0.45

Tested by

no test coverage detected