<?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>195576</bug_id>
          
          <creation_ts>2009-06-07 17:31:09 +0000</creation_ts>
          <short_desc>maximize button doesn&apos;t work as expected, left click doesn&apos;t restore original size</short_desc>
          <delta_ts>2012-03-14 01:41:54 +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>unspecified</version>
          <rep_platform>Ubuntu</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="Tanja Schulte">nightowl</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>bugzilla</cc>
    
    <cc>finex</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>771520</commentid>
    <comment_count>0</comment_count>
    <who name="Tanja Schulte">nightowl</who>
    <bug_when>2009-06-07 17:31:09 +0000</bug_when>
    <thetext>Version:           KDE 4.3 Beta1 (using KDE 4.2.4)
OS:                Linux
Installed from:    Ubuntu Packages

I use the standard settings for the window&apos;s maximize button: left click resizes horizontally &amp; vertically, middle click resizes vertically, right click resizes horizontally.

When I just use the left mouse button it does work as expected, window gets maximized and restored to original size. Now I maximize the window mit left click, then I use the middle mouse button to shrink the maximized window just vertically. Then I maximize the window again either with left or middle click. Everything&apos;s fine so far. Now I want to restore the original size from that full maximized window. So I click the maximize button with the left, which is defined as both direction resizing. But instead of restoring the default size the window gets only shrinked vertically as before. I need to then click right to restore the original size.

This means once I have used any other mouse button than the left one on the maximize button I cannot restore the maximized window to default size with the left mouse button but always have to use either left + right click (as described above) or left + middle click when I used the right key to downsize the window from full maximize. The original window size is remembered but not used, instead the last used window size is restored with a left click.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861079</commentid>
    <comment_count>1</comment_count>
    <who name="Janet">bugzilla</who>
    <bug_when>2009-11-13 14:19:11 +0000</bug_when>
    <thetext>I can confirm this with KDE 4.3.2 and sidux distribution. This behaviour is all but intuitive and very confusing. A left click on the maximize button IMHO should always resize to both directions, up or down, that&apos;s what&apos;s expected from its description.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1030195</commentid>
    <comment_count>2</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2010-10-10 23:01:19 +0000</bug_when>
    <thetext>Confirmed with 4.5.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1235438</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-03-12 03:23:16 +0000</bug_when>
    <thetext>http://git.reviewboard.kde.org/r/104219/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236272</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-03-14 01:41:54 +0000</bug_when>
    <thetext>Git commit 2b3bcb59586a40636e0d5f97c5d0d083945bdba7 by Thomas Lübking.
Committed on 11/03/2012 at 06:35.
Pushed by luebking into branch &apos;master&apos;.

remove overzealous maxmode_restore

there&apos;s no point in changing the behavior of the maximize button

M  +0    -1    kwin/client.cpp
M  +0    -7    kwin/client.h
M  +0    -18   kwin/geometry.cpp

http://commits.kde.org/kde-workspace/2b3bcb59586a40636e0d5f97c5d0d083945bdba7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>