Skip to content

PipeRead when called from a function cannot grab pointer #610

Closed
@BanchouBoo

Description

@BanchouBoo

Upfront Information

  • Fvwm3 version: 1.0.4

  • Linux distribution: Void Linux (glibc)

  • Platform: Linux unknown

Expected Behaviour

The following function is meant to run a program that lets you select a region on your screen (like slop for example) and move/size the window to that region, but it's unable to capture the pointer. I initially thought the BusyCursor wasn't working for some reason, but that's not actually the case. If I run BusyCursor Read False in my StartFunction then call the PipeRead directly in a keybind instead of calling the function it works fine, so presumably something about it being called from a function makes it unable to capture the pointer.

DestroyFunc BooxResizeMove
AddToFunc BooxResizeMove
+ I BusyCursor Read False
+ I PipeRead 'boox -w -f "Current ResizeMove %wp %hp %xp %yp"'

Relevant logs

When I run the command this is all I get in the log, seemingly nothing important

[1630881980.595227] ewmh_ComputeAndSetWorkArea: monitor 'HDMI-A-0': {l: 0, r: 0, t: 0, b: 0} {x: 0, y: 0, w: 1920, h: 1080}
[1630881980.595260] EWMH_GetWorkAreaIntersection: mon: HDMI-A-0 {ax: 0, ay: 0, aw: 1920, ah: 1080
[1630881980.595266] EWMH_GetWorkAreaIntersection: mon: HDMI-A-0 {x: 0, y: 0, w: 1920, h: 1080
[1630881980.595277] EWMH_GetWorkAreaIntersection: mon: HDMI-A-0 finalising: {x: 0, y: 0, w: 1920, h: 1080}

Full logs here: fvwm3-output.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions