WM: add preference for wayland to force the scroll direction on Wayland #120563

Open
Campbell Barton wants to merge 1 commits from ideasman42/blender:pr-wayland-scroll-direction into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

Even though the wayland protocol has the ability to query the scroll direction,
it seems none of the mainstream wayland compositors support this.
GNOME 46 and KDE 6, WLROOTS appliers to support this although the latest version of SWAYWM doesn't work in my tests.

This workaround can be removed once the underlying API's are better
supported.


Note, I would much prefer the wayland compositors would support the protocol, so far they haven't - as far as I can tell, see: #107676 for details.

Even though the wayland protocol has the ability to query the scroll direction, it seems none of the mainstream wayland compositors support this. GNOME 46 and KDE 6, WLROOTS appliers to support this although the latest version of SWAYWM doesn't work in my tests. This workaround can be removed once the underlying API's are better supported. ---- Note, I would much prefer the wayland compositors would support the protocol, so far they haven't - as far as I can tell, see: #107676 for details.
Campbell Barton force-pushed pr-wayland-scroll-direction from 850c1de5b5 to e9af5f8f2f 2024-04-12 12:37:44 +02:00 Compare
Campbell Barton changed title from WM: add preference for wayland to force the scroll direction to WM: add preference for wayland to force the scroll direction on Wayland 2024-04-12 12:42:46 +02:00
Campbell Barton requested review from Sebastian Parborg 2024-04-12 12:43:09 +02:00

How are you feeling about this now that it seems like it is only Gnome that is missing this functionality?
I can't try it out for myself, as I don't have a trackpad. But code wise I think this looks fine.

If you want to merge this, I would just add clarification in the code comments that this workaround if for gnome and link to the upstream issue: https://gitlab.gnome.org/GNOME/mutter/-/issues/2804

How are you feeling about this now that it seems like it is only Gnome that is missing this functionality? I can't try it out for myself, as I don't have a trackpad. But code wise I think this looks fine. If you want to merge this, I would just add clarification in the code comments that this workaround if for gnome and link to the upstream issue: https://gitlab.gnome.org/GNOME/mutter/-/issues/2804
This pull request has changes conflicting with the target branch.
  • scripts/startup/bl_ui/space_userpref.py
  • source/blender/makesdna/DNA_userdef_types.h
  • source/blender/makesrna/intern/rna_userdef.cc
  • source/blender/windowmanager/intern/wm_event_system.cc

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u pr-wayland-scroll-direction:ideasman42-pr-wayland-scroll-direction
git checkout ideasman42-pr-wayland-scroll-direction
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#120563
No description provided.