Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-07-31 15:38:32

bradwiggo
Member
Registered: 2021-06-29
Posts: 15

If I move a window with xdotool/wmctrl, a workspace change undoes it

Here is the script I am using: https://github.com/randomcoder67/XFCE-L … er/tile.sh

I also tried moving the window using wmctrl -r.

Windows will move/resize correctly, but if I change to another workspace, then change back, the window is back to it's original position.

Is there any way to fix this?

Edit: This only happens when the window was "snapped/tiled" before.

Last edited by bradwiggo (2023-07-31 15:41:40)

Offline

#2 2023-08-01 12:01:12

bradwiggo
Member
Registered: 2021-06-29
Posts: 15

Re: If I move a window with xdotool/wmctrl, a workspace change undoes it

Update: I fixed the issue, I believe it is to do with the window state. If it is tiled, then it will move back to it's original position when you change workspace. Workaround is to do this:

wmctrl -r "WINDOW_ID" -i -b add,maximized_vert

Which will remove the tiled state.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 516.68 KiB (Peak: 531.57 KiB) ]