Skip to content

Ask the window which button was pressed, not Compose - #1060

Open
JingMatrix wants to merge 1 commit into
masterfrom
fix-secondary-click-1055
Open

JingMatrix wants to merge 1 commit into
masterfrom
fix-secondary-click-1055

Conversation

@JingMatrix

Copy link
Copy Markdown
Owner

A right click on a module row opens its scope instead of its menu (#1055). #930 fixed that gesture in August and it worked then.

The material3 pin also decides compose-ui's version: Gradle takes whichever minimum is higher, material3's or the BOM's. alpha29 chose compose-ui 1.13.0-alpha01, which rewrote trackpad handling, and a row stopped being told which button was pressed, so a right click arrived looking like an ordinary tap. rc01 chooses 1.12.0, leaving the BOM's 1.12.1 to govern again, the version the gesture last worked on.

The gesture no longer asks Compose for the button either. A decorator on the window's callback reads it from the MotionEvent and forwards every event untouched, and a click made with that button opens the menu. Which row the pointer is over is still Compose's answer.

Dependencies are updated throughout and both manager modules compile. Untested on a touchpad; that needs the reporter.

@JingMatrix
JingMatrix force-pushed the fix-secondary-click-1055 branch 2 times, most recently from 6ba37b9 to 5b73fda Compare November 5, 2026 16:29
A right click on a module row opened its scope instead of its menu again.

material3's version also decides compose-ui's: Gradle takes whichever
minimum is higher, material3's or the BOM's. alpha29 chose compose-ui
1.13.0-alpha01, which rewrote trackpad handling and stopped telling a row
which button a pointer pressed. rc01 chooses 1.12.0, so the BOM's 1.12.1
governs again.

The gesture no longer depends on that. A decorator on the window's
callback reads the button from the MotionEvent and forwards every event
untouched. A click made with the secondary button opens the menu.

Dependencies updated throughout.

Fixes #1055
@JingMatrix
JingMatrix force-pushed the fix-secondary-click-1055 branch from 5b73fda to d1d43f3 Compare November 5, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant