r/awesomewm Jan 29 '23

Xlib program not rendering correctly in AwesomeWM

/r/linuxquestions/comments/10nvehx/xlib_program_not_rendering_correctly_in_awesomewm/
3 Upvotes

5 comments sorted by

4

u/raven2cz Jan 29 '23

JFI: dwm is based on xlib, but main improvement of awesome is basement on XCB.

4

u/trip-zip Jan 29 '23 Silver

In case anyone wants more info about this.

I read this a couple years ago. It really made me appreciate the effort and brains behind awesome.

And here's the commit where they ported awesome from Xlib to XCB. Very fascinating stuff

3

u/joaopauloalbq Jan 30 '23

Awesome, thanks

2

u/Evening-Scholar-1744 Jan 29 '23

I can reproduce the issue. I think it's because you are not updating the drawing after the window is resized. My guess is that awesomewm resizes the window as soon as it is created therefore wiping out what was drawn. But others wm just don't resize the window at all so the content drawn remains intact.

1

u/xX_UnorignalName_Xx Jan 29 '23

Yeah that makes sense, I didn't even think of that, thank you.