Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348819 - x11-wm/fluxbox-1.1.1-r2 multi-screen issue with x11-libs/libX11-1.4.0
Summary: x11-wm/fluxbox-1.1.1-r2 multi-screen issue with x11-libs/libX11-1.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jim Ramsay (lack) (RETIRED)
URL:
Whiteboard:
Keywords:
: 349272 350226 350641 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-15 23:18 UTC by Tomas Psika
Modified: 2011-01-21 00:04 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Psika 2010-12-15 23:18:56 UTC
After libX11 upgrade I cannot start X applications on another X session. Using Fluxbox DM.

Found the same issue mentioned here:
    http://www.gossamer-threads.com/lists/gentoo/user/222370

Reproducible: Always

Steps to Reproduce:
1. emerge =x11-libs/libX11-1.4.0
2. startx -- :1
3. try to start some X application

Actual Results:  
# startx -- :1
# ... (launch xterm) ...
# xterm Xt error: Can't open display


Downgrade to x11-libs/libX11-1.3.6 solves the issue.
Comment 1 Heinrich Götzger 2010-12-29 11:37:02 UTC
Hi,

after the update on my AMD64 I got the same problem with libX11-1.4.0.

Opening an xterm on the second screen did not work.

The solution to fix this is as described in comment #0, downgrade to libX11-1.3.6

My setup is a nVidia Corporation G73 [GeForce 7600 GT] dualhead with two screens attached and running as two separate X-Sessions/Screens. (:0 and :0.1) with fluxbox-1.1.1-r2.

Thanks.


Comment 2 Tomas Psika 2010-12-30 11:21:22 UTC
It looks mostly like Fluxbox issue. Incorrectly handling (fixed) output of XDisplayString in libX11-1.4.0.

http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=f92e754297ec5fdb81068b56a4435026666224fa

Reported via Fluxbox tracker (without any reply):

http://sourceforge.net/tracker/?func=detail&aid=3136775&group_id=35398&atid=413960

Quite obvious cause of problem found in Fluxbox sources (FbCommands.executeCmd::run):

-----

    string display = DisplayString(FbTk::App::instance()->display());
    int screen_num = m_screen_num;
    if (screen_num < 0) {
        if (Fluxbox::instance()->mouseScreen() == 0)
            screen_num = 0;
        else
            screen_num = Fluxbox::instance()->mouseScreen()->screenNumber();
    }

...

    display.erase(display.size()-1);
    display += FbTk::StringUtil::number2String(screen_num);

-----
Comment 3 Jani Saarenpää 2010-12-30 15:23:46 UTC
Could we apply a temporary patch?
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2010-12-31 07:52:52 UTC
Reassigning to fluxbox maintainers then.

Thanks
Comment 5 Raphaël Droz 2010-12-31 16:02:34 UTC
*** Bug 350226 has been marked as a duplicate of this bug. ***
Comment 6 Jani Saarenpää 2011-01-06 12:48:32 UTC
http://sourceforge.net/tracker/?func=detail&aid=3136775&group_id=35398&atid=413960

Says that it is fixed now in their version control.
Comment 7 Jim Ramsay (lack) (RETIRED) gentoo-dev 2011-01-17 14:04:11 UTC
*** Bug 350641 has been marked as a duplicate of this bug. ***
Comment 8 Jim Ramsay (lack) (RETIRED) gentoo-dev 2011-01-19 01:02:45 UTC
Backported upstream fix from their git commit e8ce9ed3

Tested with a Xephyr multi-screen non-xinerama setup;
able to open apps on either :2.0 or :2.1.

Please enjoy your new x11-wm/fluxbox-1.1.1-r3
Comment 9 John B 2011-01-21 00:04:00 UTC
*** Bug 349272 has been marked as a duplicate of this bug. ***