Skip to content

viewport 0.7.0

Choose a tag to compare

@codebam codebam released this 14 Nov 19:17
· 107 commits to main since this release
v0.7.0
906bd00

The Hyprland input and rule parity work: three per-device input settings, a
focus-follows-the-pointer inset, per-window blur rules, and a tablet pen that
reaches every output. The full list is in the
changelog; the
headline is below.

Input

  • scroll_button pins the button scrolling waits for while scroll_method
    is on_button_down, named by its evdev code — the middle button is 274, not
    2. scroll_button_lock makes that button toggle scroll mode rather than
    having to be held, and drag_3fg drags with three fingers down instead of a
    tap followed by a drag. libinput makes the last one the same device setting
    tap_drag programs, so the two share one state. All three are set at runtime
    through config.input and carried in the config event's input.

Focus

  • cursor.follow_mouse_shrink insets the invisible rectangle a window
    presents to focus-follows-the-pointer by the given logical pixels on each
    side, so a pointer over a client's shadow or decoration margin no longer
    moves the keyboard. Clicks, the wheel and drags hit the window wherever the
    pointer really is; only the hover focus is shrunk. Zero — the default — keeps
    the whole bounding box.

Rules

  • Per-window blur rules. The compositor draws framebuffer blur behind the
    window's whole surface tree — the same effect a client gets from
    ext-background-effect-v1 — whether or not the window asked for it, popups
    included, so a menu over a blurred window blurs too. The shell resolves the
    rule per window and sends it over a new view.blur message; a rule that
    stops matching turns the blur back off, because the shell re-sends current
    policy on every rule match. A renderer that cannot run the effect draws the
    window sharp, exactly as it would a layer-rule blur. X11 windows keep their
    existing path.

Fixed

  • A tablet pen that reaches every output. The pen's position maps across the
    bounding box of the layout — the same region the pointer is clamped to —
    instead of being folded onto the first output: with a second monitor plugged
    in, half of every tablet's surface was unreachable. Pressure is unchanged and
    needs nothing: libinput normalizes it to 0..1 and the compositor passes it
    through as it is.