Skip to content

places-sidebar: Add touch screen support for eject button - #3823

Open
sulincix wants to merge 1 commit into
linuxmint:masterfrom
fork-for-humanity:master
Open

places-sidebar: Add touch screen support for eject button#3823
sulincix wants to merge 1 commit into
linuxmint:masterfrom
fork-for-humanity:master

Conversation

@sulincix

Copy link
Copy Markdown

Allow the eject/unmount action on the places sidebar to be triggered via touch events (GDK_TOUCH_END).

We safely check the event type first before evaluating event->button to prevent reading undefined fields during a touch event.

Fixes touch screen usability where tapping the eject icon previously had no effect.

Allow the eject/unmount action on the places sidebar to be triggered
via touch events (`GDK_TOUCH_END`).

We safely check the event type first before evaluating `event->button`
to prevent reading undefined fields during a touch event.

Fixes touch screen usability where tapping the eject icon previously
had no effect.
@mtwebster

Copy link
Copy Markdown
Member

Hi did you test this on hardware? This function only runs on a 'button-release-event' signal.

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.

2 participants