← Back to team overview

ubuntu-elisp team mailing list archive

[Bug 1407353] [NEW] Maximized emacs window gradually shrinks

 

Public bug reported:

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)

** Affects: emacs24 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
You received this bug notification because you are a member of Ubuntu
Emacs Lisp, which is subscribed to emacs24 in Ubuntu.
https://bugs.launchpad.net/bugs/1407353

Title:
  Maximized emacs window gradually shrinks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emacs24/+bug/1407353/+subscriptions


Follow ups

References