BurntSushi / wingo

A fully-featured window manager written in Go.
Do What The F*ck You Want To Public License
1k stars 90 forks source link

Center cursor on HeadFocusWithClient #14

Closed manveru closed 12 years ago

manveru commented 12 years ago

At the moment there's this in my config:

Mod4-Shift-w := HeadFocusWithClient 0 (GetActive)
Mod4-Shift-w := MovePointerRelative 0 0

But I'd like to center the cursor, no matter what size the respective monitor is.

BurntSushi commented 12 years ago

I agree. I've made MovePointerRelative have similar semantics as MoveRelative:

MovePointerRelative (X :: float | int) (Y :: float | int)
        Moves the pointer to the x and y position specified by X and Y relative to the
        current workspace. Note the the origin is located in the top left corner of
        the current workspace.

        X and Y may either be pixels (integers) or ratios in the range 0.0 to
        1.0 (specifically, (0.0, 1.0]). Ratios are measured with respect to the
        workspace's geometry.