[ icewm-Bugs-3082118 ] Initial window placement/Dual Head

"SourceForge.net" <[email protected]> Sun, 31 Oct 2010 13:32:22 +0000
Newsgroups gmane.comp.window-managers.icewm.devel
Message-ID <[email protected]>
Bugs item #3082118, was opened at 2010-10-06 14:20
Message generated for change (Settings changed) made by captnmark
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100031&aid=3082118&group_id=31

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: icewm-1.3
Group: behavior
Status: Open
>Resolution: Works For Me
>Priority: 2
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Marko Macek (captnmark)
Summary: Initial window placement/Dual Head

Initial Comment:
Summary: New windows are placed (most of them) on wrong monitor in dual head config.

I have a notebook with external LCD monitor attached. Notebook panel and external LCD are configured with xrandr to dual head configuration. LCD is to be used as primary and panel is to be user as secondary, right-of LCD

xrandr --output VGA-0 --mode 1280x1024 --output LVDS --pos 1285x0

That works OK, but taskbar now is on panel, not on LCD. So I change IceWM preferences:

XineramaPrimaryScreen=1

After IceWM restart the taskbar is on LCD, so LCD is indeed primary.

If I create a window now it will be placed on notebook panel, not on LCD (not OK).
If I have a focused window on LCD or on panel and try to create a new one - it will be placed on the same screen where focused window is (probably OK)
If I run Firefox and run some dialog window (Edit->Preferences) - dialog window is created on the center of panel, not LCD even if Firefox is focused on LCD monitor (not OK)

Is there any way to force new windows to be created on screen which is destignated as primary in icewm preferences ?


----------------------------------------------------------------------

Comment By: Marko Macek (captnmark)
Date: 2010-10-11 21:44

Message:
Try also:

xrandr --output VGA-0 --primary

icewm setting XineramaPrimaryScreen should not be required -- it was for
older xrandr/xinerama support.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2010-10-06 15:07

Message:
Look around line 1320 in wmmgr.cc. If I change 

int xiscreen = 0;

to

int xiscreen = xineramaPrimaryScreen;

This fixes initial placement of "normal" windows for me. New windows are
created on default xrandr screen unless other focused window override this.

Firefox windows are not fixed by this and I think that icewm has nothing
to do with that. Firefox seems to explicitly requesting it's dialog windows
to be placed on screen 0.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100031&aid=3082118&group_id=31

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev