← Back to team overview

dx-packages team mailing list archive

[Bug 1514065] Re: Windows move in workspaces after a window resize event

 

Here is the script I'm currently using to rescue stuck windows -
activating them has the nice side-effect of bringing them back to their
original Workspace as well.

#!/bin/bash
#
# Resets all Windows after triggering Ubuntu/VirtualBox windowing bug
#
# @todo Filter out windows we don't need, using grep

for window in `wmctrl -l | cut -d " " -f 1`; do
    # Debugging
    #echo $window

    # Looks like doing just one axis doesn't work
    wmctrl -i -r $window -b toggle,maximized_vert,maximized_horz
    wmctrl -i -r $window -b toggle,maximized_vert,maximized_horz

    # Activate them as well
    wmctrl -R $window
done

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to compiz-plugins-main in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1514065

Title:
  Windows move in workspaces after a window resize event

Status in compiz-plugins-main package in Ubuntu:
  New

Bug description:
  I run Ubuntu 14.04 LTS as a VirtualBox guest (both with VB 4.3.x and
  5.x) using the default desktop. If I toggle the size of the screen
  (using Host-Right-Ctrl) from maximised to not maximised and then back
  again, the workspaces behave incorrectly. The same happens also if I
  save and restore a VirtualBox session from disk.

  Here is what goes wrong:

  - Maximised windows move between Workspaces
  - When activating the Workspaces viewer, maximised windows cannot be dragged to the Workspace they should be on
  - Unmaximising and re-maximising a window fixes the problem for that window only

  I have written a script to toggle the maximisation status of all
  windows, which resolves the problem. I will add that, and system
  information, once this report is submitted.

  I have installed a brand new Ubuntu guest using the "ubuntu-14.04.2
  -desktop-amd64.iso" image and cannot reproduce the problem. It is
  perhaps the case that the problematic machine was installed using the
  "ubuntu-14.04-desktop-amd64.iso" image (I don't know if that would
  matter).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/compiz-plugins-main/+bug/1514065/+subscriptions


References