Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Set a window's Class under linux
Print
Pages: [
1
]
Author
Topic: Set a window's Class under linux (Read 3015 times)
0 Members and 1 Guest are viewing this topic.
tntexplosivesltd
Full Member
Posts: 163
Set a window's Class under linux
«
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?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: Set a window's Class under linux
«
Reply #1 on:
September 09, 2012, 08:32:19 am »
What is WM_CLASS? How is it supposed to be set?
Logged
Laurent Gomila - SFML developer
tntexplosivesltd
Full Member
Posts: 163
Re: Set a window's Class under linux
«
Reply #2 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.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: Set a window's Class under linux
«
Reply #3 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()
.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Set a window's Class under linux