Maximized emacs window gradually shrinks

Bug #1407353 reported by Neil Turton on 2015-01-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
emacs24 (Ubuntu)
Undecided
Unassigned

Bug Description

lsb_release -rd:
Description: Ubuntu 14.04.1 LTS
Release: 14.04

Package: emacs24
Version: 24.3+1-2ubuntu1

Package: kde-window-manager
Version: 4:4.11.11-0ubuntu0.2

I opened an emacs window and maximized it vertically. I then switched repeatedly between a "Customize Option" buffer and the *scratch* buffer. Every buffer switch caused the window to shrink slightly by moving the lower edge up. This continued until the window only contains only 2 lines of each buffer. No doubt the window manager is involved; I am using kwin (version above).

The output of "xwininfo -id 0x3000112" below shows the problem. Note that the height and corners fields change every time, but geometry changes every other time.

[Maximize the scratch window]

xwininfo: Window id: 0x3000112 "emacs@eagle"

  Absolute upper-left X: 576
  Absolute upper-left Y: 25
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 581
  Height: 732
  Depth: 24
  Visual: 0x20
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x22 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +576+25 -209+25 -209-11 +576-11
  -geometry 79x51+572+0

[Switch to the customize buffer]

xwininfo: Window id: 0x3000112 "emacs@eagle"

  Absolute upper-left X: 576
  Absolute upper-left Y: 25
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 581
  Height: 730
  Depth: 24
  Visual: 0x20
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x22 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +576+25 -209+25 -209-13 +576-13
  -geometry 79x51+572+0

[Switch to the scratch buffer]

xwininfo: Window id: 0x3000112 "emacs@eagle"

  Absolute upper-left X: 576
  Absolute upper-left Y: 25
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 581
  Height: 719
  Depth: 24
  Visual: 0x20
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x22 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +576+25 -209+25 -209-24 +576-24
  -geometry 79x50+572+0

[Switch to the customize buffer]

xwininfo: Window id: 0x3000112 "emacs@eagle"

  Absolute upper-left X: 576
  Absolute upper-left Y: 25
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 581
  Height: 717
  Depth: 24
  Visual: 0x20
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x22 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +576+25 -209+25 -209-26 +576-26
  -geometry 79x50+572+0

I would expect one of two behaviours. Option 1 would be to swap between two different window sizes, each containing the maximum number of lines for that buffer. Option 2 would be to keep the lower edge of the window at the bottom of the screen and absorb the difference in height by changing the size of some internal padding. Option 1 would be more consistent with the current resize behaviour.

This problem seems to be due to the change in height of the toolbar. If I disable the toolbar (menu-bar-showhide-tool-bar-menu-customize-disable), the problem goes away. If I put the toolbar on the left side or right size and maximize the window fully, the window shrinks horizontally instead of vertically.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: emacs24 24.3+1-2ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11
Uname: Linux 3.13.0-43-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
CurrentDesktop: KDE
Date: Sat Jan 3 21:21:19 2015
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/emacs24-x
InstallationDate: Installed on 2013-08-13 (508 days ago)
InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130213)
SourcePackage: emacs24
UpgradeStatus: Upgraded to trusty on 2014-04-23 (254 days ago)

Neil Turton (0neiltk-launchpad) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers