The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 2,085β€…    Votes:  2β€…    βœ… Solution
Tags: 16.04   unity   workspaces   external-monitor   thunderbolt  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1070319
Title: Windows move between workspaces when screen turns off
ID: /2018/08/30/Windows-move-between-workspaces-when-screen-turns-off
Created: August 30, 2018    Edited:  October 10, 2024
Upload: January 1, 2025    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Update 2024-10-10

There is a new bug report after Ubuntu 16.04 LTS (with Unity and Compiz) for the Gnome Shell in 2021 through 2024:

A few years ago I changed my system to NOT rearrange windows when a monitor is disconnected. This solved the problem for me.

Original answer

There is a four year old bug report on this and the fix is in and it’s been triaged:

Windows change Monitor/Desktop after screen lock

In the short term instead of locking the screen on inactivity (which basically shuts it off with gnome-screensaver I think) you could consider a screen saver with password that kicks in after a period of inactivity. I haven’t tested this myself mind you.

⇧ What is snapcrafters and what does it mean if it is listed as the developer of some apps on Ubuntu Software? Configure screensaver in Ubuntu  β‡©