SFML community forums

Help => Window => Topic started by: fantoro on January 08, 2018, 03:14:15 pm

Title: Is there any way to make i3wm treat the RenderWindow as a popup?
Post by: fantoro on January 08, 2018, 03:14:15 pm
Hey, I switched to i3wm last time but I found out that SFML windows are always treated as tiling windows, is there any window mode that allows you to change that or do I have to tweak my i3/config?
Title: Re: Is there any way to make i3wm treat the RenderWindow as a popup?
Post by: dabbertorres on January 08, 2018, 04:08:38 pm
There was discussion (https://github.com/SFML/SFML/issues/383) about making a general WM_CLASS for all SFML windows, but looks like that fell through.

Otherwise, SFML sets the a window's class to it's initial title (https://github.com/SFML/SFML/blob/master/src/SFML/Window/Unix/WindowImplX11.cpp#L678-L699), so you'd need to add a for_window[class="my sfml window title"] floating enable to your i3/config.
Title: Re: Is there any way to make i3wm treat the RenderWindow as a popup?
Post by: fantoro on January 09, 2018, 07:12:55 pm
Thanks :)