Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-06-2003, 01:58 AM   #1
Registered: Jun 2003
Location: British Columbia, Canada
Distribution: Debian unstable
Posts: 83

Rep: Reputation: 15
Question SDL window focus

heyo all,

i'm getting into C++ to do some game programing, and i'm using SDL to make things all the much easier on me. i'm trying to figure out how to tell if my programe's window is the window that has focus, so that the game automatically pauses when the user leaves the window. any hints or tricks?
thanks a bunch,
Old 10-06-2003, 07:36 AM   #2
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
i havnt got any man pages in front of me but from the docs on the website it looks to me as though this might be a good function to start looking at in response to the SDL_SysWMEvent Event.

int SDL_GetWMInfo(SDL_SysWMinfo *info);


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems setting the focus window steve_f60 Linux - General 1 10-25-2005 01:03 PM
New window focus in XFce xray_fl Programming 0 05-12-2005 02:05 PM
window focus thaprza Linux - Newbie 3 03-06-2005 03:25 PM
Evolution, Firefox, KDE, and Window Focus Matir Linux - Software 4 03-02-2005 10:11 AM
Window focus/raising behavior jhaiduce Linux - Software 2 10-02-2003 07:20 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration