tfga
tfga

Reputation: 61

Vte: get cursor position in screen coordinates

VTE's get_cursor_position() returns "scrollback buffer" coordinates, i.e. the y is relative not to beginning of the screen, but to the to the beginning of the scrollback buffer. How can I get screen coordinates instead?

Upvotes: 1

Views: 920

Answers (1)

Hez
Hez

Reputation: 24

gtk.gdk.get_default_root_window().get_pointer()

Upvotes: 0

Related Questions