You are not logged in.

#1 2015-03-31 16:23:59

sup3rman
Member
Registered: 2014-12-06
Posts: 6

New windows open on wrong screen in Awesome

I have Awesome set up to use multiple screens. Very often when an application opens a window, the new window is placed on the wrong screen but often belongs to the correct tag (on another screen). If I maximise the new window, it will move back to the correct tag and screen.

To clarify, this problem can happen when a "Open file" dialogue is opened, or if an application spawns a new window (like inkscape when loading a new file). This never seems to happen for the first window of an application. I can use ranger or thunar to open XLS document fine, but if I keep that open and open another one it opens on the wrong screen.

The problem occurs on my own awesome settings, as well as the default settings. I have set up my monitors in Xorg with the following (10-monitor.conf):

Section "Monitor"
        Identifier      "DELL"
        Option          "Preferred Mode" "1920x1200_60.00"
        Option          "Primary" "true"
EndSection

Section "Monitor"
        Identifier      "RightBenQ"
        Option          "Preferred Mode" "1920x1080_60.00"
        Option          "RightOf" "DELL"
EndSection

Section "Monitor"
        Identifier      "LeftBenQ"
        Option          "Preferred Mode" "1920x1080_60.00"
        Option          "LeftOf" "DELL"
EndSection

Section "Device"
        Identifier      "nvidia"
        Driver          "nouveau"
        Option          "Monitor-HDMI-1" "LeftBenQ"
        Option          "Monitor-DVI-I-1" "DELL"
        Option          "Monitor-DVI-D-1" "RightBenQ"
EndSection

Offline

#2 2015-03-31 17:05:59

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,548

Re: New windows open on wrong screen in Awesome

I have xorg.conf setup so that it is predictable which way it is going to work.  My LVDS is screen 1 until I plug in a monitor, and then VGA becomes screen 1 (rightof).  But if I switch them (leftof), then it puts them in reverse.  That behavior is somewhat desirable to have the open dialog on the other screen.  It usually opens an application based on which screen the mouse is in.  To switch it around, just press mod4+o.
You can also create rules in your rc.lua.

Last edited by nomorewindows (2015-03-31 17:21:49)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2015-04-01 11:49:48

sup3rman
Member
Registered: 2014-12-06
Posts: 6

Re: New windows open on wrong screen in Awesome

No it is not a mouse thing. And using the Mod4+o doesn't really help. Once I get it to the correct screen, it is still detached from the layout. I have to Mod4+m twice to get it to join the other client windows in the layout correctly.

I was pretty sure awesome was as a default set up to open new windows in the current tag. Is this wrong? Do i have to explicitly set this myself?

Offline

#4 2015-04-01 12:28:01

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: New windows open on wrong screen in Awesome

I don't know if this helps at all, but toolkits like GTK store the window positions of dialog boxes. In xmonad the dialog boxes open up on the last monitor (workspace in xmonad) that they were before. If you do use a mouse and drag the dialogs back to the screen where expect them, does it open in the correct place the next time?

Last edited by skottish (2015-04-01 12:28:37)

Offline

Board footer

Powered by FluxBB