<?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>449541</bug_id>
          
          <creation_ts>2022-02-03 05:09:16 +0000</creation_ts>
          <short_desc>Quick tile action via shortcut de-maximizes the window without tiling as a first action</short_desc>
          <delta_ts>2022-02-10 09:27:53 +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>core</component>
          <version>5.23.5</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=376104</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=329136</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Nicholas Serrano">2019nicholas</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>kde</cc>
    
    <cc>nate</cc>
    
    <cc>till2.schaefer</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/commit/733469d4e7648cd1df0862c8879ac364594935da</cf_commitlink>
          <cf_versionfixedin>5.24.1</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2100588</commentid>
    <comment_count>0</comment_count>
    <who name="Nicholas Serrano">2019nicholas</who>
    <bug_when>2022-02-03 05:09:16 +0000</bug_when>
    <thetext>SUMMARY
Using a quick tile action via shortcut on a window that is currently maximized causes it to de-maximize without tiling. A subsequent quick tile action tiles as expected. 

EXPECTED RESULT
Using a quick tile action via shortcut on a window that is currently maximized will tile it immediately.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 35
(available in About System)
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100645</commentid>
    <comment_count>1</comment_count>
    <who name="Till Schäfer">till2.schaefer</who>
    <bug_when>2022-02-03 12:11:22 +0000</bug_when>
    <thetext>Cannot reproduce this with the same software versions. Are you using wayland or X11? 


Operating System: Gentoo Linux
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.15.16-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100681</commentid>
    <comment_count>2</comment_count>
    <who name="Nicholas Serrano">2019nicholas</who>
    <bug_when>2022-02-03 14:56:48 +0000</bug_when>
    <thetext>Currently using Wayland, I can confirm that when I switch to X11 the bugged behavior goes away so this is Wayland specific</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100747</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-02-03 18:13:04 +0000</bug_when>
    <thetext>I can&apos;t reproduce this on Wayland with current git master. A bunch of quick tiling fixes just went in, so I guess this got fixed!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102554</commentid>
    <comment_count>4</comment_count>
    <who name="Nicholas Serrano">2019nicholas</who>
    <bug_when>2022-02-09 20:14:23 +0000</bug_when>
    <thetext>Just updated to the following:
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.5-200.fc35.x86_64 (64-bit)
Using https://copr.fedorainfracloud.org/coprs/zawertun/kde/

I&apos;m still running into this issue however have noticed that it does not affect gtk applications, for example the &quot;Problem Reporting&quot; app on Fedora, or rnote from flathub. Should I expect to have seen different behavior in 5.24 or have those fixes not been pushed to a release yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102562</commentid>
    <comment_count>5</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-09 20:36:56 +0000</bug_when>
    <thetext>Cannot reproduce on wayland. Can you provide more detailed steps to reproduce?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102567</commentid>
    <comment_count>6</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-09 20:44:38 +0000</bug_when>
    <thetext>also, does this happen only with decorated windows? can you share your window deco settings (theme, and border size)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102576</commentid>
    <comment_count>7</comment_count>
    <who name="Nicholas Serrano">2019nicholas</who>
    <bug_when>2022-02-09 20:50:33 +0000</bug_when>
    <thetext>Ah I was typing up/recording a way to reproduce but saw your message. I was using Sierra Breeze Enhanced Window Decorations and after switching to Breeze the bugged behavior went away. It does seem associated with decorated windows when using that specific Window decoration theme. I assume I should open a bug report with the creator of Sierra Breeze Enhanced. (https://github.com/kupiqu/SierraBreezeEnhanced)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102583</commentid>
    <comment_count>8</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-09 21:04:57 +0000</bug_when>
    <thetext>https://invent.kde.org/plasma/kwin/-/merge_requests/1988</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102586</commentid>
    <comment_count>9</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-09 21:09:24 +0000</bug_when>
    <thetext>(In reply to Nicholas Serrano from comment #7)
&gt; Ah I was typing up/recording a way to reproduce but saw your message. I was
&gt; using Sierra Breeze Enhanced Window Decorations and after switching to
&gt; Breeze the bugged behavior went away. It does seem associated with decorated
&gt; windows when using that specific Window decoration theme. I assume I should
&gt; open a bug report with the creator of Sierra Breeze Enhanced.
&gt; (https://github.com/kupiqu/SierraBreezeEnhanced)

No it&apos;s a kwin bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102587</commentid>
    <comment_count>10</comment_count>
    <who name="Nicholas Serrano">2019nicholas</who>
    <bug_when>2022-02-09 21:15:06 +0000</bug_when>
    <thetext>I see. Thanks for looking into the issue and asking the right questions as I hadn&apos;t provided much info initially. I&apos;ll keep an eye on the mr and update this report/open a new one if I run into any issues after updating kwin to a version that should have the fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102595</commentid>
    <comment_count>11</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-09 21:25:10 +0000</bug_when>
    <thetext>As a workaround, select &quot;No Borders&quot; border size in system settings. I believe it should fix the issue when using Sierra Breeze Enhanced</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102596</commentid>
    <comment_count>12</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-09 21:25:26 +0000</bug_when>
    <thetext>&quot;fix&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102610</commentid>
    <comment_count>13</comment_count>
    <who name="Nicholas Serrano">2019nicholas</who>
    <bug_when>2022-02-09 22:05:10 +0000</bug_when>
    <thetext>(In reply to Vlad Zahorodnii from comment #11)
&gt; As a workaround, select &quot;No Borders&quot; border size in system settings. I
&gt; believe it should fix the issue when using Sierra Breeze Enhanced

This indeed works as a workaround, thanks for the tip</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102762</commentid>
    <comment_count>14</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-10 09:08:26 +0000</bug_when>
    <thetext>Git commit c54937b2ad5afd02f7cfc19916f74e7fa8ab0bbb by Vlad Zahorodnii.
Committed on 10/02/2022 at 08:43.
Pushed by vladz into branch &apos;master&apos;.

Avoid mixing current and next state

Mixing of current and next state can create all sorts of undefined
behavior, e.g. windows not moving to the desired location or
experiencing issues when tiling a maximized window.

M  +5    -6    src/abstract_client.cpp

https://invent.kde.org/plasma/kwin/commit/c54937b2ad5afd02f7cfc19916f74e7fa8ab0bbb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102770</commentid>
    <comment_count>15</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-10 09:26:17 +0000</bug_when>
    <thetext>Git commit 733469d4e7648cd1df0862c8879ac364594935da by Vlad Zahorodnii.
Committed on 10/02/2022 at 09:19.
Pushed by vladz into branch &apos;Plasma/5.24&apos;.

Avoid mixing current and next state

Mixing of current and next state can create all sorts of undefined
behavior, e.g. windows not moving to the desired location or
experiencing issues when tiling a maximized window.
(cherry picked from commit c54937b2ad5afd02f7cfc19916f74e7fa8ab0bbb)

M  +5    -6    src/abstract_client.cpp

https://invent.kde.org/plasma/kwin/commit/733469d4e7648cd1df0862c8879ac364594935da</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>