SFML community forums

Help => Window => Topic started by: tntexplosivesltd on September 09, 2012, 06:38:56 am

Title: Set a window's Class under linux
Post by: tntexplosivesltd on September 09, 2012, 06:38:56 am
Hi

I need to set my game's WM_CLASS under linux in order for my window manager to draw the window correctly. Is there a way to do this with SFML?
Title: Re: Set a window's Class under linux
Post by: Laurent on September 09, 2012, 08:32:19 am
What is WM_CLASS? How is it supposed to be set?
Title: Re: Set a window's Class under linux
Post by: tntexplosivesltd on September 09, 2012, 10:47:46 am
It's a property of all windows in X. I can set rules in my window manager for different applications based on their window class, and I need one for my game so it doesn't just tile.
Title: Re: Set a window's Class under linux
Post by: Laurent on September 09, 2012, 10:54:39 am
With SFML 2 (not 1.6), you can get the system handle of the window with window.getSystemHandle().