Mouse.ScreenX (gb.qt4)

Static Property Read ScreenX As Integer

Returns the current absolute horizontal position of the cursor.

This property and it's co-part Mouse.ScreenY can be used at ANY time in your code unlike the other Mouse properties that can only be accessed during mouse events.

Warning...

With Wayland Mouse.ScreenX and Mouse.ScreenY do not report the mouse position relevant to the screen but instead report Mouse.X and Mouse.Y relevant to the form.

Gambas cannot get the actual screen mouse position in wayland