[xmonad] Is there a way to reparent a window manually?

Platon Pronko platon7pronko at gmail.com
Thu Apr 22 07:27:53 UTC 2021


Hi!

I'm trying to run Unity Editor under XMonad. Unfortunately I'm having issues - sub-windows of the main window are not redrawn properly, resulting in ugly mess (previously-opened menu lists do not disappear, etc).

It seems that this could be happening due to XMonad being non-reparenting (I ran the same app under XFCE, and it seems to work okay).

Is there a way to reparent a window manually?

I tried creating a new X window via Python and Xlib, as in this example: https://rosettacode.org/wiki/Window_creation/X11#Python
and then reparenting the window to it via `xdotool windowreparent` and subsequently `xdotool windowmap` plus `xdotool windowsize`. It partially worked - the app window correctly resized to fill the parent window, seems to be reacting to mouse move and mouse scroll events (interface elements are highlighted), reacts to keyboard events, but completely ignores mouse button events (clicks/drags). I'm attaching create_window.py script I used to create the window.
Any idea about what am I missing? Maybe my event masks are wrong?

Best regards,
Platon Pronko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create_window.py
Type: text/x-python
Size: 768 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20210422/f5e8594f/attachment.py>


More information about the xmonad mailing list