<?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>427124</bug_id>
          
          <creation_ts>2020-09-29 18:48:36 +0000</creation_ts>
          <short_desc>Window sizes are not correctly restored on Wayland</short_desc>
          <delta_ts>2022-02-18 15:55:30 +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>5.22.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>wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Silva">bugseforuns</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>alex765</cc>
    
    <cc>claudius.ellsel</cc>
    
    <cc>nate</cc>
    
    <cc>till2.schaefer</cc>
    
    <cc>tromzy</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      <flag name="Wayland"
          id="3980"
          type_id="31"
          status="+"
          setter="vlad.zahorodnii"
    />
    <flag name="X11"
          id="3981"
          type_id="32"
          status="-"
          setter="vlad.zahorodnii"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1961290</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2020-09-29 18:48:36 +0000</bug_when>
    <thetext>SUMMARY
This issue can also be reproduced with non-KDE Qt5 (tested qBittorrent) and gtk3 (tested Gedit text editor) apps running natively on Wayland.

STEPS TO REPRODUCE:
1. start Wayland session
2. open Kate
3. resize Kate window by dragging its borders
4. close Kate
5. reopen Kate (Kate is not maximized, as expected)
6. maximize Kate
7. close Kate
8. reopen Kate (Kate opens maximized, as expected)
9. restore Kate window by clicking on &quot;Restore&quot; button in its title bar

OBSERVED RESULT
the button clicked in the last step indicates that Kate window was restored but it is still occupying the whole screen

EXPECTED RESULT
Kate window should be restored to the size set via manual resizing in the step 3

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
my kwin was built today from source code</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965855</commentid>
    <comment_count>1</comment_count>
    <who name="Claudius Ellsel">claudius.ellsel</who>
    <bug_when>2020-10-17 13:57:09 +0000</bug_when>
    <thetext>The same problem was described in https://bugs.kde.org/show_bug.cgi?id=409919#c0, although the scope of that issue seems to be a different one now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965938</commentid>
    <comment_count>2</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2020-10-17 17:42:28 +0000</bug_when>
    <thetext>Confirmed. KWin doesn&apos;t know the previous size of kate, so it needs to send a configure event with a width and a height of 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967014</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2020-10-21 19:22:23 +0000</bug_when>
    <thetext>*** Bug 428051 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2016460</commentid>
    <comment_count>4</comment_count>
    <who name="Till Schäfer">till2.schaefer</who>
    <bug_when>2021-03-18 12:45:03 +0000</bug_when>
    <thetext>I can confirm this bug under wayland. X11 is working fine. 

Operating System: Gentoo Linux
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.7-gentoo
OS Type: 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>2063769</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-09-24 20:56:35 +0000</bug_when>
    <thetext>On Wayland, are apps still allowed to set their own window sizes? I know they can&apos;t for their position, but what about window size? If so, I can probably fix this in kxmlgui.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2073503</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2021-10-30 12:29:58 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1589</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2106058</commentid>
    <comment_count>7</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-18 10:25:59 +0000</bug_when>
    <thetext>Should be fixed in 5.24</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2106149</commentid>
    <comment_count>8</comment_count>
    <who name="Claudius Ellsel">claudius.ellsel</who>
    <bug_when>2022-02-18 15:55:30 +0000</bug_when>
    <thetext>(In reply to Vlad Zahorodnii from comment #7)
&gt; Should be fixed in 5.24

Hm, not sure. I think I didn&apos;t see improvement when I checked.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>