<?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>478223</bug_id>
          
          <creation_ts>2023-12-07 16:40:04 +0000</creation_ts>
          <short_desc>Window previews and window screen sharing are flipped vertically</short_desc>
          <delta_ts>2024-02-15 14:30:46 +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>wayland-generic</component>
          <version>master</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>qt6, wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alessandro Astone">ales.astone</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>ahiemstra</cc>
    
    <cc>aleixpol</cc>
    
    <cc>chriserizo</cc>
    
    <cc>kdebug3rep0rt.lwyfo</cc>
    
    <cc>matt.fagnani</cc>
    
    <cc>me</cc>
    
    <cc>nate</cc>
    
    <cc>vlad.zahorodnii</cc>
    
    <cc>xaver.hugl</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/1ce25f713787abdc60003bacd14e48ecaef61ea3</cf_commitlink>
          <cf_versionfixedin>6.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2271950</commentid>
    <comment_count>0</comment_count>
    <who name="Alessandro Astone">ales.astone</who>
    <bug_when>2023-12-07 16:40:04 +0000</bug_when>
    <thetext>When running Plasma 6 beta in KVM with Virtio video and no 3d acceleration the window previews in the taskbar are mirrored vertically, and likewise sharing window contents with pipewire is also mirrored vertically


STEPS TO REPRODUCE
Create a KVM with
```
&lt;video&gt;
  &lt;model type=&quot;virtio&quot; heads=&quot;1&quot; primary=&quot;yes&quot;&gt;
    &lt;acceleration accel3d=&quot;no&quot;/&gt;
  &lt;/model&gt;
  &lt;address type=&quot;pci&quot; domain=&quot;0x0000&quot; bus=&quot;0x00&quot; slot=&quot;0x01&quot; function=&quot;0x0&quot;/&gt;
&lt;/video&gt;
```


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora KDE Rawhide
(available in About System)
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
This probably affects real hardware too when using llvmpipe or generally memfd-based pipewire capture.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2272001</commentid>
    <comment_count>1</comment_count>
    <who name="Alessandro Astone">ales.astone</who>
    <bug_when>2023-12-07 20:09:16 +0000</bug_when>
    <thetext>@Nate this is definitely in the kwin wayland backend/screencast plugin, that&apos;s why i assigned it to kwin. Unfortunately there&apos;s no component in the list that expresses that...

But whatever can get the right people to look into it works, i suppose.

See also: https://invent.kde.org/plasma/kwin/-/merge_requests/3611</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2285666</commentid>
    <comment_count>2</comment_count>
    <who name="">fanzhuyifan</who>
    <bug_when>2024-02-03 18:23:20 +0000</bug_when>
    <thetext>*** Bug 480787 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2288795</commentid>
    <comment_count>3</comment_count>
    <who name="">chriserizo</who>
    <bug_when>2024-02-14 22:57:41 +0000</bug_when>
    <thetext>Can confirm this also happens in Nvidia GPUs running the latest stable branch propietary driver (535)

Some users have reported that the latest beta release (550) fixes this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2288890</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-02-15 08:58:40 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5204</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2288931</commentid>
    <comment_count>5</comment_count>
    <who name="Alessandro Astone">ales.astone</who>
    <bug_when>2024-02-15 13:09:02 +0000</bug_when>
    <thetext>*** Bug 478067 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2288952</commentid>
    <comment_count>6</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2024-02-15 14:05:48 +0000</bug_when>
    <thetext>Git commit 3388b7643c1e7e6299d98dab9c485b6ae76e8bd0 by Vlad Zahorodnii.
Committed on 15/02/2024 at 13:54.
Pushed by vladz into branch &apos;master&apos;.

plugins/screencast: Fix window screencasts being vertically mirrored with memfd

WindowScreenCastSource::render(GLFramebuffer) renders windows with the y
axis flipped, but the offscreen has no FlipY flag set.

M  +5    -8    src/plugins/screencast/windowscreencastsource.cpp

https://invent.kde.org/plasma/kwin/-/commit/3388b7643c1e7e6299d98dab9c485b6ae76e8bd0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2288955</commentid>
    <comment_count>7</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2024-02-15 14:26:12 +0000</bug_when>
    <thetext>Git commit 1ce25f713787abdc60003bacd14e48ecaef61ea3 by Vlad Zahorodnii.
Committed on 15/02/2024 at 14:18.
Pushed by vladz into branch &apos;Plasma/6.0&apos;.

plugins/screencast: Fix window screencasts being vertically mirrored with memfd

WindowScreenCastSource::render(GLFramebuffer) renders windows with the y
axis flipped, but the offscreen has no FlipY flag set.
(cherry picked from commit 3388b7643c1e7e6299d98dab9c485b6ae76e8bd0)

M  +5    -8    src/plugins/screencast/windowscreencastsource.cpp

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

    </bug>

</bugzilla>