<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>472901</bug_id>
          
          <creation_ts>2023-08-01 23:39:17 +0000</creation_ts>
          <short_desc>Screen flickers when switching virtual desktop with touchpad gesture and animations are off</short_desc>
          <delta_ts>2023-10-17 12:16:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>Gestures</component>
          <version>5.27.6</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Quinten Kock">quinten</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>nate</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/1c447b7cee950e99761763c80c15e6e862b40b4b</cf_commitlink>
          <cf_versionfixedin>5.27.9</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2243911</commentid>
    <comment_count>0</comment_count>
    <who name="Quinten Kock">quinten</who>
    <bug_when>2023-08-01 23:39:17 +0000</bug_when>
    <thetext>SUMMARY
The screen flickers black for a frame or so when using the touchpad gesture to switch virtual desktops (three/four finger swipe). More specifically, it happens as soon as you release, and only when animations are disabled.

STEPS TO REPRODUCE
1. Disable animations by dragging the &quot;Animation speed&quot; slider in systemsettings all the way to right.
2. Switch virtual desktops with 3/4 finger touchpad swipe.
3. Observe that the screen flickers black when releasing your fingers.

OBSERVED RESULT
Screen flickers black.

EXPECTED RESULT
Screen switches instantly to target desktop, without any visual flicker.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 38 kernel 6.4.6
(available in About System)
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
GPU: Intel UHD 620, Mesa 23.1.4
Graphics Platform: Wayland

Wasn&apos;t sure which component to file against, so general.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2258868</commentid>
    <comment_count>1</comment_count>
    <who name="Quinten Kock">quinten</who>
    <bug_when>2023-10-14 10:22:53 +0000</bug_when>
    <thetext>I just noticed, when using the keyboard shortcut to switch between desktops the same issue happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2259265</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-10-16 05:12:36 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4507</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2259358</commentid>
    <comment_count>3</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2023-10-16 17:07:14 +0000</bug_when>
    <thetext>Git commit 94b74cff960566d42813ecf4847637c2283a6fac by Vlad Zahorodnii, on behalf of Quinten Kock.
Committed on 16/10/2023 at 19:07.
Pushed by vladz into branch &apos;master&apos;.

plugins/slide: add special case for instant animations 

In springmotion.cpp for the slide plugin, there are issues when
animations are disabled, namely a black screen flicker.

The flicker is caused by float under/overflow (div-by-0 -&gt; infinity).

This commit fixes that by special-casing an infinite spring constant,
so that the animation immediately jumps to the anchor.

M  +10   -0    src/plugins/slide/springmotion.cpp

https://invent.kde.org/plasma/kwin/-/commit/94b74cff960566d42813ecf4847637c2283a6fac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2259510</commentid>
    <comment_count>4</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2023-10-17 11:07:36 +0000</bug_when>
    <thetext>Git commit 1c447b7cee950e99761763c80c15e6e862b40b4b by Vlad Zahorodnii, on behalf of Quinten Kock.
Committed on 16/10/2023 at 19:07.
Pushed by vladz into branch &apos;Plasma/5.27&apos;.

plugins/slide: add special case for instant animations 

In springmotion.cpp for the slide plugin, there are issues when
animations are disabled, namely a black screen flicker.

The flicker is caused by float under/overflow (div-by-0 -&gt; infinity).

This commit fixes that by special-casing an infinite spring constant,
so that the animation immediately jumps to the anchor.


(cherry picked from commit 94b74cff960566d42813ecf4847637c2283a6fac)

M  +10   -0    src/effects/slide/springmotion.cpp

https://invent.kde.org/plasma/kwin/-/commit/1c447b7cee950e99761763c80c15e6e862b40b4b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>