← Back to team overview

touch-packages team mailing list archive

[Bug 1452405] Re: wmctrl cannot move windows into certain positions

 

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

** Changed in: unity (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity in Ubuntu.
https://bugs.launchpad.net/bugs/1452405

Title:
  wmctrl cannot move windows into certain positions

Status in unity package in Ubuntu:
  Confirmed

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1452405/+subscriptions


References