Qtile does not intercept the event of switching from ultra-wide to picture by picture mode and does not update resolution

When I switch from 5120x1440 to two 2560x1440 side by side/picture-in-picture mode, Qtile continues rendering the environment as if it is a zoomed out 5120x1440 screen, with blank screen at the top and bottom of the environment.

Logging out and back in fixes the resolution.

But ideally Qtile should listen to/intercept events like this (new monitor, change in resolution, etc.) and update the view automatically.