use the frame's area not the client's
This commit is contained in:
parent
9faca110ac
commit
5160662248
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ def random(data):
|
||||||
"""Place windows randomly around the screen."""
|
"""Place windows randomly around the screen."""
|
||||||
if not data.client: return
|
if not data.client: return
|
||||||
if data.client.positionRequested(): return
|
if data.client.positionRequested(): return
|
||||||
client_area = data.client.area()
|
client_area = data.client.frame.area()
|
||||||
frame_size = data.client.frame.size()
|
frame_size = data.client.frame.size()
|
||||||
screen_area = ob.openbox.screen(data.screen).area(data.client.desktop())
|
screen_area = ob.openbox.screen(data.screen).area(data.client.desktop())
|
||||||
width = screen_area.width() - (client_area.width() +
|
width = screen_area.width() - (client_area.width() +
|
||||||
|
@ -42,7 +42,7 @@ def cascade(data):
|
||||||
"""Place windows in a cascading order from top-left to bottom-right."""
|
"""Place windows in a cascading order from top-left to bottom-right."""
|
||||||
if not data.client: return
|
if not data.client: return
|
||||||
if data.client.positionRequested(): return
|
if data.client.positionRequested(): return
|
||||||
client_area = data.client.area()
|
client_area = data.client.frame.area()
|
||||||
frame_size = data.client.frame.size()
|
frame_size = data.client.frame.size()
|
||||||
screen_area = ob.openbox.screen(data.screen).area(data.client.desktop())
|
screen_area = ob.openbox.screen(data.screen).area(data.client.desktop())
|
||||||
width = screen_area.width() - (client_area.width() +
|
width = screen_area.width() - (client_area.width() +
|
||||||
|
|
Loading…
Reference in a new issue