Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Set a window's Class under linux  (Read 2292 times)

0 Members and 1 Guest are viewing this topic.

tntexplosivesltd

  • Full Member
  • ***
  • Posts: 163
    • View Profile
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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
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?
Laurent Gomila - SFML developer

tntexplosivesltd

  • Full Member
  • ***
  • Posts: 163
    • View Profile
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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
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().
Laurent Gomila - SFML developer