Window client area

Is there a way to find the actual screen location of the client area within a Window? Or the size of the titlebar and so work out the location by adding it to the Window Position and so giving the actual location of the client area.

Not using SDL as far as I know. If you’re using Win32, try ClientToScreen()
with a point of (0,0) to get the screen coordinates of the client area, or
using GetWindowRect() to get the screen coordinates of the window’s
titlebar.On Thu, Aug 23, 2012 at 10:30 PM, dosh wrote:

**
Is there a way to find the actual screen location of the client area
within a Window? Or the size of the titlebar and so work out the location
by adding it to the Window Position and so giving the actual location of
the client area.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I’m using Linux.

Patrick Baggett wrote:> Not using SDL as far as I know. If you’re using Win32, try ClientToScreen() with a point of (0,0) to get the screen coordinates of the client area, or using GetWindowRect() to get the screen coordinates of the window’s titlebar.

On Thu, Aug 23, 2012 at 10:30 PM, dosh <@dosh (@dosh)> wrote:

   	Is there a way to find the actual screen location of the client area within a Window? Or the size of the titlebar and so work out the location by adding it to the Window Position and so giving the actual location of the client area.

SDL mailing list
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

I might be starting to get of the SDL topic however X11 XGetGeometry seems to only give the x , y position as 0 even though the window is positioned in varies positions on the screen. The width and height change correctly when the window size is changed.