Skip to content

Commit

Permalink
#3127 make it possible to turn off smooth scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 19, 2021
1 parent 025fed2 commit 18d3efc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xpra/gtk_common/gtk_util.py
Expand Up @@ -25,6 +25,7 @@
SHOW_ALL_VISUALS = False
#try to get workarea from GTK:
GTK_WORKAREA = envbool("XPRA_GTK_WORKAREA", True)
SMOOTH_SCROLL = envbool("XPRA_SMOOTH_SCROLL", True)

GTK_VERSION_INFO = {}
def get_gtk_version_info() -> dict:
Expand Down Expand Up @@ -199,6 +200,9 @@ def get_default_cursor() -> Gdk.Cursor:
WINDOW_EVENT_MASK = em.STRUCTURE_MASK | em.KEY_PRESS_MASK | em.KEY_RELEASE_MASK \
| em.POINTER_MOTION_MASK | em.BUTTON_PRESS_MASK | em.BUTTON_RELEASE_MASK \
| em.PROPERTY_CHANGE_MASK | em.SCROLL_MASK | em.SMOOTH_SCROLL_MASK
if SMOOTH_SCROLL:
WINDOW_EVENT_MASK |= em.SMOOTH_SCROLL_MASK

del em


Expand Down

0 comments on commit 18d3efc

Please sign in to comment.