Bug#416251: fullscreen window positioning not compatible with xinerama

martin f krafft madduck at debian.org
Mon Mar 26 10:36:30 UTC 2007


Package: libgtk2.0-0
Version: 2.8.20-7
Severity: important

I have a three head setup, using Xinerama to combine the three
monitors into a single logical screen. At 3x1280 by 1024, I thus
have a screen estate of 3840x1024 pixels.

GTK applications fail to position themselves properly on that
estate. The idea with my setup is that a window opens on the head
with the mouse pointer. Mathematically, in my setup, the horizontal
position of the window should be Wx on the head H, given by the
following equations. Mx is the horizontal position Mx of the mouse:

  H = int(Mx / 1280)   // division without remainder
  Wx = Mx % 1280       // the remainder

This seems to work now and then, but if an application remembers the
size of its window and it was shut down full-screen (1280x1024 in my
setup; such as iceweasel, jpilot, kazehakase), the mouse position
will be multiplied by 0.5 before the horizontal window position is
computed, and the number of the head seems to be ignored. The first
two also apply to a dual-screen setup:

  - if mouse on head 0 (0 <= Mx < 1280), window origin is +0+0
    it thus displays properly on head 0
  - if mouse on head 1 (1280 <= Mx < 2560), window origin is +640+0
    it thus displays half on head 0 and half on head 1
  - if mouse on head 2 (2560 <= Mx < 3840), window origin is +1280+0
    it thus displays full-screen on head 1 (but not 2 as it should)

If the window is not restored at full-screen size, positioning seems
to work okay.

The above does not apply to applications like Gimp and buffy, which
restore their positions after drawing the window.

Thanks for looking into this.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages libgtk2.0-0 depends on:
ii  libatk1.0-0               1.12.4-3       The ATK accessibility toolkit
ii  libc6                     2.3.6.ds1-13   GNU C Library: Shared libraries
ii  libcairo2                 1.2.4-4        The Cairo 2D vector graphics libra
ii  libfontconfig1            2.4.2-1.2      generic font configuration library
ii  libglib2.0-0              2.12.6-2       The GLib library of C routines
ii  libgtk2.0-common          2.8.20-7       Common files for the GTK+ graphica
ii  libjpeg62                 6b-13          The Independent JPEG Group's JPEG 
ii  libpango1.0-0             1.14.8-5       Layout and rendering of internatio
ii  libpng12-0                1.2.15~beta5-1 PNG library - runtime
ii  libtiff4                  3.8.2-7        Tag Image File Format (TIFF) libra
ii  libx11-6                  2:1.0.3-6      X11 client-side library
ii  libxcursor1               1.1.7-4        X cursor management library
ii  libxext6                  1:1.0.1-2      X11 miscellaneous extension librar
ii  libxfixes3                1:4.0.1-5      X11 miscellaneous 'fixes' extensio
ii  libxi6                    1:1.0.1-4      X11 Input extension library
ii  libxinerama1              1:1.0.1-4.1    X11 Xinerama extension library
ii  libxrandr2                2:1.1.0.2-5    X11 RandR extension library
ii  libxrender1               1:0.9.1-3      X Rendering Extension client libra

Versions of packages libgtk2.0-0 recommends:
ii  hicolor-icon-theme            0.10-1     default fallback theme for FreeDes
ii  libgtk2.0-bin                 2.8.20-7   The programs for the GTK+ graphica

-- no debconf information

-- 
 .''`.   martin f. krafft <madduck at debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (GPG/PGP)
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20070326/f54191f1/attachment.pgp


More information about the pkg-gnome-maintainers mailing list