You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some problems with DesktoGeometry and WorkArea values: I am trying to get the active window and resize it to fill the entire screen but when I use the function setMoveResizeWindow with the WorkArea values it put the window in a different position.
This is my code:
fromewmhimportEWMHewmh=EWMH()
# get desktop geometry and workareaw, h=ewmh.getDesktopGeometry()
xr, yr, wr, hr=ewmh.getWorkArea()[:4]
print("Desktop Geometry: ", w, h)
print("Desktop WorkArea:", xr, yr, wr, hr)
# get active windowwin=ewmh.getActiveWindow()
# resize windowewmh.setMoveResizeWindow(
win,
x=xr,
y=yr,
w=wr,
h=hr
)
ewmh.display.flush()
I've tested this script on my ArchLinux + XFCE system and on a Ubuntu 20.4 WM, same problem but in different ways:
On Arch the window height is bigger than screen height.
On Ubunut the window is in a weird position.
The text was updated successfully, but these errors were encountered:
I have some problems with DesktoGeometry and WorkArea values: I am trying to get the active window and resize it to fill the entire screen but when I use the function
setMoveResizeWindow
with the WorkArea values it put the window in a different position.This is my code:
I've tested this script on my ArchLinux + XFCE system and on a Ubuntu 20.4 WM, same problem but in different ways:
On Arch the window height is bigger than screen height.
On Ubunut the window is in a weird position.
The text was updated successfully, but these errors were encountered: