agwells / pywo

Automatically exported from code.google.com/p/pywo
GNU General Public License v3.0
0 stars 0 forks source link

On two different-sized monitors, windows are cut off at shorter window's gnome-panel position #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've set one of my monitors to a vertical orientation, and one horizontal. 
Here's a picture: http://imgur.com/0bAEOTE . I realize this is probably not a 
common use-case. :)

What steps will reproduce the problem?
1. Connect one 1920x1080 monitor, and one 1080x1920 monitor to computer. (In 
other words, two monitors, one in horizontal configuration and one in vertical 
configuration)
2. Put gnome-panel in the horizontal monitor (i.e., make it the primary monitor)
2. Use pywo to position windows in the vertical (1080x1920) monitor

What is the expected output:
pywo should position windows using the full height of the vertical monitor. 
i.e. pressing the "middle" layout button should make the window 1080 wide and 
1920 tall.

What do you see instead:
pywo lines up windows in the vertical monitor, with the edge of the 
gnome-panels in the horizontal monitor. So, pressing the "middle" layout button 
makes the window only roughly 1080 wide and 1040 tall.

What version of the product are you using? 
built from r202

On what operating system?
Ubuntu 12.0.4
MATE Desktop Environment 1.6.0

Please provide any additional information below.
One workaround is to put the gnome-panel in the vertical monitor instead. If I 
do this, then pywo will position windows in the full real estate on each 
monitor. But since gnome-panel benefits from having a lot of horizontal space, 
it's better to put it in the horizontal monitor. (Also technically I'm using 
mate-panel, not gnome-panel, but it's very similar.)

Original issue reported on code.google.com by aaronwells on 27 Jun 2013 at 3:20

GoogleCodeExporter commented 9 years ago
It looks like ultimately the problem is because the workarea geometry is 
obtained from _NET_WORKAREA. I worked around this for now by hard-coding my 
current geometry into WindowManager.workarea_geometry() in 
pywo/core/windows.py, in place of _NET_WORKAREA.

Now it becomes apparent that the next feature I need is the ability to specify 
different layout grids for each monitor. 3x2 on the horizontal one, 2x3 on the 
vertical one. ;) Maybe I'll just do 3x3 as a compromise.

Original comment by aaronwells on 8 Jul 2013 at 12:59