Bug 272886 - Un-maximizing xterm windows does nothing.
Summary: Un-maximizing xterm windows does nothing.
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.6
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-09 21:55 UTC by Sean Reifschneider
Modified: 2011-05-09 22:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!