Bug 272886

Summary: Un-maximizing xterm windows does nothing.
Product: [I don't know] kde Reporter: Sean Reifschneider <jafo-kde>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.6   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sean Reifschneider 2011-05-09 21:55:22 UTC
Version:           4.6 (using KDE 4.6.2) 
OS:                Linux

If I maximize an xterm window, either through clicking the maximize button, or doing one of the key sequences I have mapped to maximize, max-width, or max-height, I cannot un-maximize it.

So, I click the maximize button, the window gets big.  I click it again, the window doesn't change in size.

Un-maximize works for Firefox or the kmixer, but not xterm.  NOTE: xterm was *NOT* updated, it was definitely the KDE update to 4.6 that caused this.

This has worked fine for me over the last several years, and then Fedora released the 4.6 update, and since then the ability to un-maximize has gone away.  That happened April 4.  I have since upgraded another of my machines from Ubuntu Maverick to Natty, which involved going to 4.6.2, and that machine behaves the same as my Fedora 14 box.

Reproducible: Always

Steps to Reproduce:
Maximize a window.  Click the maximize button again.

Actual Results:  
Window remains maximized.

Expected Results:  
Window returns to previous size and position.

I have a video demonstrating this at http://jafo.tummy.com/kde-maximize.mpg, recorded with my camera phone so it's not the best, but I think it should show the basics.
Comment 1 Sean Reifschneider 2011-05-09 22:05:59 UTC
I started filing this bug before I realized that it only impacted xterm (xterm is really the only window I typically maximize).  I did some searching around about maximizing xterms, and found that this issue is fixed in 4.7, and there is a work-around for 4.6:

https://bugs.kde.org/show_bug.cgi?id=266607

To work around (refined from the comment in the above bug, because it took me a while to figure them out):

   * Run "xcmshell4 kwinrules"
   * Click on "New".
   * Click the "Detect Window Properties" button.
   * Click on an xterm.
   * Select "Use window class (whole application)".
   * Click "Ok".
   * Click on the "Workarounds" tab.
   * Select "Strictly obey geometry", change drop-down to "Force" and leave the final check-box un-checked.
   * Click "Ok"
   * Click "Apply".

That has worked for me.  Oh the joy!