sebastien / pywo

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

Grid actions leave a 5px border between the screen edge and the window #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Start pywo
2. Hit your grid_width_top_left shortcut or grid_width_left or 
grid_width_bottom_left

What is the expected output? What do you see instead?

Window will be placed 5 pixels from the left edge of the screen instead of 
right at the edge. 

What version of the product are you using? On what operating system?

pywo 0.2, Ubuntu 12.04.

Please provide any additional information below.

I believe this is related to the shadow that is drawn around windows by compiz. 
If I turn off window decorations in compiz, the issue will not happen.

Original issue reported on code.google.com by email.r...@gmail.com on 16 Nov 2012 at 4:51

GoogleCodeExporter commented 8 years ago
Here's my config:

[SETTINGS]
; 1/on/yes/true - work only when NumLock is on
; ignore - ignore NumLock state (works when on and off)
; 0/off/no/false - work only when NumLock is off
numlock = ignore

; invert window gravity if it needs resizing (eg terminals with incremental 
; size change), works only for grid
invert_on_resize = yes

; if true try expandig in vertical axis first
vertical_first = yes

; grid_2x2, grid_3x2, grid_3x3, custom
layout = grid_3x2

ignore_actions = grid_height, float, expand, shrink, put, switch, cycle

[KEYS]
; section/point-name =  key
top-left = u
top = i
top-right = o
left = j
middle = k
right = l
bottom-right = m
bottom = ,
bottom-left = .

switch = Alt-KP_Divide
cycle = Alt-Shift-KP_Divide

; key modifiers (Alt, Shift, Ctrl, Super) for actions 
float = Alt
expand = Shift
shrink = Alt-Shift
put = Alt-Ctrl
; cycle widths
grid_width = Ctrl-Alt-Super
; cycle heights
grid_height = Super

; exit PyWo
exit = Ctrl-Shift-Alt-Q
; reload configuration file
reload = Ctrl-Shift-Alt-R
; print info for current window
debug = Ctrl-Shift-Alt-I

; Example of custom screen position definition:
;
; [name-of-screen-position]
; direction     - direction of move, expand, shrink
; position      - position relative to screen (for put and grid)
; gravity       - window gravity (if no gravity set, same as position)
; widths        - list of widths for grid
; heights       - list of height for grid
; 
; valid direction, position, gravity values:
; - TOP_LEFT, TOP, TOP_RIGHT, 
; - LEFT, MIDDLE, RIGHT, 
; - BOTTOM_LEFT, BOTTOM, BOTTOM_RIGHT
; - or x, y percent value - eg: 1.0, 0.5
;
; valid widths, heights values:
; - QUARTER, THIRD, HALF, FULL
; - 1.0/3*2 or THIRD*2 (will be evaluated)

Original comment by email.r...@gmail.com on 16 Nov 2012 at 4:52

GoogleCodeExporter commented 8 years ago
First thing that comes to my mind - try turning off 'invert_on_resize' option. 
But this should be the issue only with terminals, or other programs that can be 
resized only using incremental steps.

If this won't help you might try checking the development version from the SVN 
repository - there were some fixes for the correct windows placement 
calculations.

I'm using rather old version of Compiz myself. As far as I remember there were 
some strange issues with the early versions of Unity in Ubuntu. Unfortunately 
various window managers report window size, position and decoration size 
differently so I had to use some hacks and workarounds. Maybe there are some 
changes between older and latest versions of Compiz

Original comment by kosci...@gmail.com on 16 Nov 2012 at 6:48