Skip to content

egl: ask the X11 WM to keep windows the size we expect

Paulo Zanoni requested to merge pzanoni/piglit:egl-set-size-hints into master

Despite the fact that the windows are very small, my Window Manager (Cinnamon) decides to not create them with the original size. This makes egl-query-suface --attr=EGL_{WIDTH,HEIGHT} fail on my machine. Simply using XSetWMNormalHints seems to fix the problem for me.

More stubborn WMs may still still decide to not comply with the request, so an alternative could be to query the window size through X11 and compare that to what EGL gives us, but I would prefer to try the less invasive approach first.

Signed-off-by: Paulo Zanoni paulo.r.zanoni@intel.com

Merge request reports

Loading