franco@bbn.com (Frank A. Lonigro) (07/26/88)
Hi: I'm just starting out programming in X and would like some help with a simple problem. What I want to do is assign an ICON to a window so when the window is iconified it turns into that ICON. I have a simple program that just prints "Hello, world" in a small window. What is the proper way to accomplish what I want???? Some sample code follows: appWindow = XCreateWindow(RootWindow, 1, 1, 150, 50, 2, BlackPixmap, WhitePixmap); iBitmap = XStoreBitmap(icon_width, icon_height, icon_bits); Icon = XMakePixmap(iBitmap, BlackPixel, WhitePixel); iconWindow = XCreateWindow(RootWindow, 1, 1, icon_width, icon_height, 2, BlackPixmap, WhitePixmap); XSetIconWindow(appWindow, iconWindow); This works fine but the ICONs bitmap is not displayed in its own window, just a blank icon window appears. Thanks in advance, -franco franco%bbn.com@relay.cs.net franco@bbn.com ...!harvard!bbn!franco