Problem with dirty close in scenic

I have finally found it!

This is important message for Gentoo and Gentoo-based distribution users.

wayland USE flag causes 255 error for compiled scenic_driver_glfw binary when running in X11 session. I have no Wayland and XWayland sessions to test them properly.

Here is example working dependency configuration:

[ebuild   R    ] media-libs/glew-2.1.0:0/2.1::media-kit  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] media-libs/glfw-3.2.1::media-kit  USE="-examples -wayland" 0 KiB
[ebuild   R    ] virtual/pkgconfig-0-r1::core-kit  ABI_X86="(64) -32 (-x32)" 0 KiB

Here is some description to other people which do not know about USE flag system. Gentoo is source-based Linux distribution. You are able to compile any open source software written for Linux as long as you have met dependencies installed in official or unofficial repository (you can create your own local repository also). If it’s not possible to compile project with support for 2 things then usually such flags have collision which you need resolve on your own. Let’s say collision between support for Qt4 and Qt5. It’s also possible that specific project supports both ways at same time, so it can build Qt4 as well as Qt5 library in one build. Therefore I though that I have only optional Wayland support and in fact it causes me trouble.