wmctrl cannot move windows into certain positions

Bug #1452405 reported by KSSG
48
This bug affects 9 people
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.04.20150420-0ubuntu1 and wmctrl version 1.07-7.

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)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity (Ubuntu):
status: New → Confirmed
Changed in unity:
status: New → Confirmed
Revision history for this message
KSSG (kssg) wrote :

The bug still exists in a freshly-updated 15.10.

Revision history for this message
Otus (jan-varho) wrote :

And still in 16.04.

Revision history for this message
johannesjo (johannesjo) wrote :

Still persists in 16.10 and 17.04

Revision history for this message
cazacugmihai (cazacugmihai) wrote :

It still persists in Ubuntu 18.04 and Unity 7.5.0.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.