Mercurial > sdl-ios-xcode
view docs/index.html @ 1558:b46bb79cc197
Fixed bug #113:
Date: Sat, 16 Apr 2005 08:39:22 +1000
From: "Eric Mangold"
Subject: [SDL] Window manager does not show SDL window titles
Hello,
I have an issue with SDL-using applications and the sawfish window manager.
The problem is that SDL windows do not show the window caption. My gnome
panel *does* show the window name, but the actual sawfish window frame
shows no caption at all. All other non-SDL applications that I use work
fine.
I tried a couple other window managers, and they *were* able to show the
SDL window captions correctly. Though there many be other WMs that can't.
I believe the problem is that SDL is using the UTF8_STRING type for the
window's WM_NAME and WM_ICON properties. In fact, WM_NAME and WM_ICON are
supposed to set to a TEXT type, usually STRING (ISO 8859-1).
The property names _NET_WM_NAME and _NET_WM_ICON_NAME should be used to
store the UTF8_STRING versions of the window title and icon name.
You can see the properties I refer to with a command like this:
xprop|grep -e "WM.*NAME"
Please note the freedesktop.org standard:
http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2506954
This page talks a little bit about the history of these properties. Just
search down the page for "WM_NAME".
http://www.cl.cam.ac.uk/~mgk25/unicode.html
Please let me know if I can be of any assistance in resolving this issue.
Thanks,
Eric Mangold
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 20 Mar 2006 07:31:36 +0000 |
parents | 74212992fb08 |
children | 14717b52abc0 |
line wrap: on
line source
<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN"> <HTML ><HEAD ><TITLE >Introduction</TITLE > </HEAD ><BODY BGCOLOR="#FFF8DC" TEXT="#000000" LINK="#0000ee" VLINK="#551a8b" ALINK="#ff0000" ><DIV CLASS="NAVHEADER" > <HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="PREFACE" ><H1 ><A NAME="AEN8" >Introduction</A ></H1 ><P >This library is designed to make it easy to write games that run on Linux, Win32 and BeOS using the various native high-performance media interfaces, (for video, audio, etc) and presenting a single source-code level API to your application. This is a fairly low level API, but using this, completely portable applications can be written with a great deal of flexibility.</P ><P >The library is loaded as a dynamically linked library on its native platform, and is currently compiled natively for Linux, compiled for Win32 using a Linux hosted GCC <A HREF="http://www.libsdl.org/Xmingw32/" TARGET="_top" >cross-compilation</A > environment, and compiled using the EGCS C++ compiler under BeOS.</P ><P >An introduction to SDL can be found online at: <A HREF="http://www.libsdl.org/intro/toc.html" TARGET="_top" >http://www.libsdl.org/intro/</A > </P ><P >There are code examples on each of the main library pages, and there are fully fleshed example C++ classes and programs in the examples archive, available on the <A HREF="http://www.libsdl.org/download.html" TARGET="_top" >SDL download page</A >.</P ><P >For an introduction to basic multi-media programming concepts, you might try some of the following links: <P ></P ><UL ><LI ><P ><A HREF="http://www.ziron.com/links/" TARGET="_top" >Game Programming Links</A ></P ></LI ><LI ><P ><A HREF="http://developer.dungeon-crawl.com/" TARGET="_top" >Game Developer Search Engine</A ></P ></LI ></UL ></P ><P >Enjoy!</P ><P > Sam Lantinga <TT CLASS="EMAIL" ><<A HREF="mailto:slouken@libsdl.org" ><A HREF="mailto:slouken@libsdl.org" TARGET="_top" >slouken@libsdl.org</A ></A >></TT ></P > <P> <br><br><HR> <H1>Table of Contents</H1> <UL> <LI><A HREF="html/index.html">Full Table of Contents</A></LI> <LI><A HREF="html/guide.html">The SDL Guide</A></LI> <LI><A HREF="html/reference.html">The SDL Reference</A></LI> <UL> <LI><A HREF="html/general.html">Initialization</A></LI> <LI><A HREF="html/video.html">Video</A></LI> <LI><A HREF="html/wm.html">Window Manager</A></LI> <LI><A HREF="html/event.html">Event Handling</A></LI> <LI><A HREF="html/joystick.html">Joystick</A></LI> <LI><A HREF="html/audio.html">Audio</A></LI> <LI><A HREF="html/cdrom.html">CDROM</A></LI> <LI><A HREF="html/thread.html">Threads</A></LI> <LI><A HREF="html/time.html">Timers</A></LI> </UL> </UL> </DIV ></BODY ></HTML >