Bug#572391: libgtk2.0-0: gtk-based apps are unaware of screen resolution across monitor plug/unplug
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Mar 3 21:57:04 UTC 2010
Package: libgtk2.0-0
Version: 2.18.6-1
Severity: normal
This might be related to #498848 (http://bugs.debian.org/498848)
I have a dual monitor setup with a 1280x1024 external VGA monitor
positioned logically "above" my 1024x600 laptop screen. when i run
xrandr while the VGA monitor is disconnected, xrandr is aware that the
monitor is unplugged, but does not change the size of the virtual
screen.
gtk-based apps appear to make use of the connected/disconnected
information during the last run of xrandr, not based on the actual
state of currently plugged hardware. i've tested this with both gedit
and evince.
if you think this is a bug in xrandr or somewhere else, feel free to
re-assign.
here's how to reproduce:
0) plug in external monitor, extend desktop into that monitor.
1) launch gedit, position on external monitor, pull down file menu.
works fine. dismiss file menu.
2) unplug external monitor, run "xrandr" with no arguments
3) plug external monitor back in.
4) try to pull down file menu: item in menubar highlights, menu does
not show. gedit spews the following error message:
(gedit:3189): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 245 and height -629
(the height value (-629 here) will depend on the vertical position
of the gedit window)
5) "dismiss" the non-existent menu by hitting ESC.
6) run "xrandr" with no arguments
7) try to pull down file menu. it works again.
Thanks for maintaining gtk in debian!
--dkg
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libgtk2.0-0 depends on:
ii libatk1.0-0 1.28.0-1 The ATK accessibility toolkit
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libcairo2 1.8.8-2 The Cairo 2D vector graphics libra
ii libcups2 1.4.2-4 Common UNIX Printing System(tm) -
ii libfontconfig1 2.8.0-2 generic font configuration library
ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.22.4-1 The GLib library of C routines
ii libgnutls26 2.8.5-2 the GNU TLS library - runtime libr
ii libgssapi-krb5-2 1.8+dfsg~alpha1-7 MIT Kerberos runtime libraries - k
ii libgtk2.0-common 2.18.6-1 Common files for the GTK+ graphica
ii libjasper1 1.900.1-6.1 The JasPer JPEG-2000 runtime libra
ii libjpeg62 6b-16.1 The Independent JPEG Group's JPEG
ii libpango1.0-0 1.26.2-1 Layout and rendering of internatio
ii libpng12-0 1.2.42-2 PNG library - runtime
ii libtiff4 3.9.2-3+b1 Tag Image File Format (TIFF) libra
ii libx11-6 2:1.3.3-1 X11 client-side library
ii libxcomposite1 1:0.4.1-1 X11 Composite extension library
ii libxcursor1 1:1.1.10-1 X cursor management library
ii libxdamage1 1:1.1.2-1 X11 damaged region extension libra
ii libxext6 2:1.1.1-2 X11 miscellaneous extension librar
ii libxfixes3 1:4.0.4-1 X11 miscellaneous 'fixes' extensio
ii libxi6 2:1.3-2 X11 Input extension library
ii libxinerama1 2:1.1-2 X11 Xinerama extension library
ii libxrandr2 2:1.3.0-3 X11 RandR extension library
ii libxrender1 1:0.9.5-1 X Rendering Extension client libra
ii shared-mime-info 0.71-1 FreeDesktop.org shared MIME databa
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages libgtk2.0-0 recommends:
ii hicolor-icon-theme 0.11-1 default fallback theme for FreeDes
ii libgtk2.0-bin 2.18.6-1 The programs for the GTK+ graphica
Versions of packages libgtk2.0-0 suggests:
ii gvfs 1.4.3-1 userspace virtual filesystem - ser
ii librsvg2-common 2.26.0-1 SAX-based renderer library for SVG
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list