Platon Pronko
2021-04-22 07:27:53 UTC
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
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