Comment 24 for bug 78538

Revision history for this message
In , wereHamster (werehamster) wrote :

Created attachment 287156
Fix XRemoteClient to support multiple screens

The problem is that XRemoteClient only scanned the default screen of the display. So if there's already a FF window open on screen 0 and you start firefox with DISPLAY=:0.1, the second instance won't see the first one and then try to lock the profile which than fails.

This patch fixes XRemoteClient to first scan the default screen and if no FF window is found it scans all other screens.

This fixes the inability to open links (from Thunderbird for example) if FF is running on a different screen. But I still don't know how to convince FF to open a new window on a different screen (so that you can have a FF window on each screen using the same profile). Any suggestions are welcome (probably need to extend the 'remote'-protocol to transmit the screen number on which the user wants to have the window opened?)