| 329 | } |
| 330 | |
| 331 | wf::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 | } |
no test coverage detected