Programmatismos Xlib
Bassoukos Tassos
abas at aix.meng.auth.gr
Wed Dec 2 13:31:00 EET 1998
On Tue, 1 Dec 1998, Alejandros Diamandidis wrote:
> Geia xara. Exw grapsei ena programmataki X11 (xrhsimopoiontas mono
> Xlib) kai exw ena problhma: jerei kaneis ti prepei na kanw wste otan
> kapoios kleisei to parathyro poy exw anoijei, to programma na to
> katalabei kai na mh moy bgalei "X connection to :0.0 broken (explicit
> kill or server shutdown).";
>
> --
> Alejandros Diamandidis * adia at egnatia.ee.auth.gr
Atom WM_DELETE_WINDOW=XInternAtom(display,"WM_DELETE_WINDOW",True);
XSetWMProtocols(display,window,&WM_DELETE_WINDOW,1);
... sto event loop ...
if(xev->xany.type==ClientMessage)
if(xev->xclient.data.l[0]==WM_DELETE_WINDOW)
exit(0);
Tassos
--
Bassoukos Tassos These views are mine,mine,MINE , bwahahaha.....
Buying an operating system without source is like buying a self-assembly
Space Shuttle with no instructions. The Samba Team
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================
More information about the Linux-greek-users
mailing list