Skip to content

tilingWindowManager with support for synchronized resizing of paired windows

I am trying to create two functions which will tile window to left and tile window to right.

I understand how to position two windows side by side.

However, I am not understanding how to give support for synchronized resizing of paired windows. I mean when I resize a window, its corresponding window will also resize accordingly.

Here is my extension https://github.com/blueray453/gnome-utils-by-blueray453/tree/testing

It supports commands like:

dbus-send --print-reply=literal --session --dest=org.gnome.Shell /org/gnome/Shell/Extensions/GnomeUtilsWindows org.gnome.Shell.Extensions.GnomeUtilsWindows.GetWindowDetailsGivenWindowID uint32:44129093

I have looked at different window manager's code. It seems too complicated.

What I need is:

dbus-send --print-reply=literal --session --dest=org.gnome.Shell /org/gnome/Shell/Extensions/GnomeUtilsWindows org.gnome.Shell.Extensions.GnomeUtilsWindows.tileWindowLeft uint32:44129093

dbus-send --print-reply=literal --session --dest=org.gnome.Shell /org/gnome/Shell/Extensions/GnomeUtilsWindows org.gnome.Shell.Extensions.GnomeUtilsWindows.tileWindowRight uint32:44129093

Such that, When one tiled window is resized, its paired window adjusts automatically.

Can you please make a video on https://www.youtube.com/playlist?list=PLr3kuDAFECjZhW-p56BoVB7SubdUHBVQT and give us some sample code.