<?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>470687</bug_id>
          
          <creation_ts>2023-06-06 06:23:28 +0000</creation_ts>
          <short_desc>Clicking the title bar in Visual Studio Code causes it to instantly resize when tiled</short_desc>
          <delta_ts>2024-09-26 16:05:36 +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>general</component>
          <version>5.27.5</version>
          <rep_platform>Arch Linux</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jordan Berlyn">jberlyn</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>nate</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/1e1b80740fe58e4bd0f90d706ecc3c2efc7e0529</cf_commitlink>
          <cf_versionfixedin>6.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2234918</commentid>
    <comment_count>0</comment_count>
    <who name="Jordan Berlyn">jberlyn</who>
    <bug_when>2023-06-06 06:23:28 +0000</bug_when>
    <thetext>SUMMARY
Visual Studio Code instantly resizes if you click anywhere on the title bar, while the window is tiled. This only happens if you have the Visual Studio Code title bar set to &quot;Custom&quot; in the settings. This happens in both X11 and Wayland.

STEPS TO REPRODUCE
1. Run Visual Studio Code with the title bar style set to custom.
2. Have the window tiled using Quick Tiling or the new tiling feature introduced in 5.27.
3. Click anywhere on the title bar that isn&apos;t a button or the search box.

OBSERVED RESULT
The window is instantly resized to it&apos;s original untiled size.

EXPECTED RESULT
Don&apos;t do anything, only resize if the window is moved, similar to how other apps work like Dolphin or Konsole.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2359303</commentid>
    <comment_count>1</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-09-24 08:26:30 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6479</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2359309</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-09-24 08:38:06 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6480</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2359916</commentid>
    <comment_count>3</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2024-09-25 22:04:27 +0000</bug_when>
    <thetext>Git commit 3d42154504214feeba69f986b56d09d58677b966 by Vlad Zahorodnii.
Committed on 25/09/2024 at 22:04.
Pushed by vladz into branch &apos;master&apos;.

Fix breaking tiling by resizing the window

When a window is resized, the window should be untiled so the geometry
doesn&apos;t change.

M  +1    -0    src/window.cpp

https://invent.kde.org/plasma/kwin/-/commit/3d42154504214feeba69f986b56d09d58677b966</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2359917</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-09-25 22:14:14 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6501</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2359926</commentid>
    <comment_count>5</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2024-09-25 22:27:05 +0000</bug_when>
    <thetext>Git commit 1e81fcb9be6ae321f024dc23fa2bba58a54bb5ae by Vlad Zahorodnii.
Committed on 25/09/2024 at 22:14.
Pushed by vladz into branch &apos;master&apos;.

Untile/unmaximize a window during interactive resize after receiving user input

Currently, a tiled window will be untiled when you start interactive
resize. But there are clients that start interactive resize as soon as
they receive a button press around their edges, e.g. Firefox, which
results in unexpected untiling. Another argument is that it makes
interactive resizing and interactive move consistent, they both would
untile the window after explicit user input.

M  +42   -39   src/window.cpp

https://invent.kde.org/plasma/kwin/-/commit/1e81fcb9be6ae321f024dc23fa2bba58a54bb5ae</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2359927</commentid>
    <comment_count>6</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2024-09-25 22:29:12 +0000</bug_when>
    <thetext>Git commit 045ad4eec5a22c9f6fe0f3b5b201c5bfa0c1fc2b by Vlad Zahorodnii.
Committed on 25/09/2024 at 22:29.
Pushed by vladz into branch &apos;Plasma/6.2&apos;.

Fix breaking tiling by resizing the window

When a window is resized, the window should be untiled so the geometry
doesn&apos;t change.


(cherry picked from commit 3d42154504214feeba69f986b56d09d58677b966)

M  +1    -0    src/window.cpp

https://invent.kde.org/plasma/kwin/-/commit/045ad4eec5a22c9f6fe0f3b5b201c5bfa0c1fc2b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2359935</commentid>
    <comment_count>7</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2024-09-25 22:58:25 +0000</bug_when>
    <thetext>Git commit 1e1b80740fe58e4bd0f90d706ecc3c2efc7e0529 by Vlad Zahorodnii.
Committed on 25/09/2024 at 22:45.
Pushed by vladz into branch &apos;Plasma/6.2&apos;.

Untile/unmaximize a window during interactive resize after receiving user input

Currently, a tiled window will be untiled when you start interactive
resize. But there are clients that start interactive resize as soon as
they receive a button press around their edges, e.g. Firefox, which
results in unexpected untiling. Another argument is that it makes
interactive resizing and interactive move consistent, they both would
untile the window after explicit user input.
(cherry picked from commit 1e81fcb9be6ae321f024dc23fa2bba58a54bb5ae)

M  +45   -42   src/window.cpp

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

    </bug>

</bugzilla>