summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Osgood <iano@quirkster.com>2006-07-30 14:38:53 -0700
committerIan Osgood <iano@quirkster.com>2006-07-30 14:38:53 -0700
commit30878a150c1745e34b389b3e1fb3087f17bddfcb (patch)
treec01e13ff535334076cab0c19e052c3868f9482dc
parent395aad8f64abf381d2dcb7b4d86944175b83e282 (diff)
neko: use WMHints stuff from Vincent.
-rw-r--r--neko/xcbneko.c29
1 files changed, 9 insertions, 20 deletions
diff --git a/neko/xcbneko.c b/neko/xcbneko.c
index 0e94320..b0b6311 100644
--- a/neko/xcbneko.c
+++ b/neko/xcbneko.c
@@ -690,30 +690,19 @@ InitScreen( char *DisplayName, char *theGeometry, char *theTitle, Bool iconicSta
theIconPixmap = CreateBitmapFromData( xc, theWindow,
icon_bits, icon_width, icon_height );
-#ifdef TODO_ICCCM
- theWMHints.icon_pixmap = theIconPixmap;
-
+
+ WMHints *theWMHints = AllocWMHints();
+
+ WMHintsSetIconPixmap( theWMHints, theIconPixmap );
+
if ( iconicState )
- theWMHints.initial_state = IconicState;
+ WMHintsSetIconic( theWMHints );
else
- theWMHints.initial_state = NormalState;
+ WMHintsSetNormal( theWMHints );
- theWMHints.flags = IconPixmapHint | StateHint;
+ SetWMHints( xc, theWindow, theWMHints);
- XSetWMHints( theDisplay, theWindow, &theWMHints );
-#else
- /* Um... there is no function to send the hints...
- WMHints theWMHints;
- WMHintsSetIconPixmap( &theHints, theIconPixmap );
-
- if ( iconicState )
- WMHintsSetIconic( &theHints );
- else
- WMHintsSetNormal( &theHints );
-
- Now what?
- */
-#endif
+ free( theWMHints );
/* why hide the structure? */
SizeHints *theSizeHints = AllocSizeHints();