(metaWindow, space)
| 5074 | * Activates the window under the mouse cursor, if any. |
| 5075 | */ |
| 5076 | export function activateWindowUnderCursor(metaWindow, space) { |
| 5077 | const [gx, gy] = global.get_pointer(); |
| 5078 | const [, x, y] = space.actor.transform_stage_point(gx, gy); |
| 5079 | const mw = space?.getWindowAtPoint(x, y); |
| 5080 | if (mw) { |
| 5081 | ensureViewport(mw, space); |
| 5082 | } |
| 5083 | } |
| 5084 | |
| 5085 | /** |
| 5086 | * Sets the focus mode for a space. |
nothing calls this directly
no test coverage detected