MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / get_global_input_coordinates

Function get_global_input_coordinates

plugins/tile/tree-controller.cpp:331–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331wf::point_t get_global_input_coordinates(wf::output_t *output)
332{
333 wf::pointf_t local = output->get_cursor_position();
334
335 auto vp = output->wset()->get_current_workspace();
336 auto size = output->get_screen_size();
337 local.x += size.width * vp.x;
338 local.y += size.height * vp.y;
339
340 return {(int)local.x, (int)local.y};
341}
342} // namespace tile
343}

Callers 4

input_motionMethod · 0.85
update_previewMethod · 0.85
handle_dropMethod · 0.85

Calls 4

wsetMethod · 0.80
get_screen_sizeMethod · 0.80
get_cursor_positionMethod · 0.45
get_current_workspaceMethod · 0.45

Tested by

no test coverage detected