wmctrl cannot move windows into certain positions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Confirmed
|
Undecided
|
Unassigned | ||
unity (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Ubuntu version 15.04, Unity version 7.3.2+15.
If I try to place a window in the top left of the desktop, with the command "wmctrl -r :ACTIVE: -e 0,0,0,1240,1034", it'll instead place the window about 10 pixels to the right of the edge of the Unity launcher.
Similarly, trying to place a window on the top right corner with "wmctrl -r :ACTIVE: -e 1,1280,0,640,360", the window appears in the right X position, but it's also about 10 pixels below the Unity panel.
However, "wmctrl -r :ACTIVE: -e 1,1280,720,640,335" will place the window at the expected position. It's like it's expecting the launcher and panel to be bigger than they actually are.
I have my launcher set to 32 pixel icons, and I set up the scale for menu and titlebars as 0.875 in Settings>Displays, and my resolution is 1920x1080.
Would love to know if there's any workaround or alternative way to place windows in specific spots via script. I tried xdotool but causes the same abnormal behavior. I confirmed xmctrl works in other desktops like KDE (both 4 and plasma 5)
Changed in unity: | |
status: | New → Confirmed |
Status changed to 'Confirmed' because the bug affects multiple users.