Skip to content

Linux engine: a gesture whose target window dies mid-gesture answers ok with no note (E1, arm64) #410

Open

Description

@SSFSKIM

Problem

In M5's T6 arm64 pilot, step E1 ("an interrupted drag under a held key, then a move") showed that cua's Linux drag answers {ok:true} when its target window destroys itself on the ButtonPress. All of cua's X requests landed on the live window before the destroy (0.82 ms on arm64). The recorder then saw only the press, and the moves and release went to no window. x64's cua and both vendor builds lost the race and answered ok:false with an X error. Both answers are truthful (ruling 818), but the ok:true answer gives the agent no sign that the gesture's target is gone after the first event.

Work

After a drag or other multi-event gesture, check that the target window still exists. If it was destroyed during the gesture, keep ok:true and add a note to the reply: target window gone after <event>. Not a failure: a gesture that closes its window is a legitimate effect.

Proof

  • A unit test with a fake X client that destroys the window on press: the reply is ok with the note.
  • E1's scenario passes with the note present on both arches.

Timing

After M5's T10, so M5's frozen heads don't move.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions