win.meta_window.move_resize_frame(0, x, y, width, height) does not work on tiled window
Affected version
I am using Zorin OS 16
which use GNOME Shell 3.38.4
Not sure how to check the Mutter version
this issue appear in XOrg
Bug summary
We can not operate on windows that are tiled.
The issue was first seen in https://github.com/jordansissel/xdotool/issues/398
Then we thought xdotool
has bugs. So, we created an gnome extension ( https://github.com/ickyicky/window-calls ) to use as alternative to xdotool
. The issue is still here. This alternative also does not work.
Steps to reproduce 1
- Tile the terminal
- Then run
xdotool getactivewindow windowsize --sync 100% 100% getwindowgeometry --shell
Steps to reproduce 2
- Install https://github.com/ickyicky/window-calls
- Run
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell/Extensions/Windows --method org.gnome.Shell.Extensions.Windows.List | cut -c 3- | rev | cut -c4- | rev | jq -c '[.[] | select (.frame_type == 0 and .window_type == 0) | {id: .id,wm_class: .wm_class}]'
to get windowID and wm_class of all visible window in current workspace. - Copy the windowID of the window you want to test with. Suppose, the
id
is 123456. - Tile the window (to left or right) which has the window id 123456.
- If this was not a tiled window, the following command would have moved and resized it
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell/Extensions/Windows --method org.gnome.Shell.Extensions.Windows.MoveResize 123456 100 100 100 100
. To confirm, untile the window then run the command. It will move and resize the window.
What happened
We can not run commands on tiled windows.
What did you expect to happen
I expected that xdotool
or our extension https://github.com/ickyicky/window-calls
would work on both tiled and untiled windows.
Relevant logs, screenshots, screencasts etc.
Edited by blueray453