summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Osgood <iano@quirkster.com>2007-02-07 19:31:04 -0800
committerIan Osgood <iano@quirkster.com>2007-02-07 19:31:04 -0800
commit1a64624e3860d4b9436449a386a09f60da0eac58 (patch)
tree8acffaadab6d1c6960df25ef4fd64c59deea4abe
parent8776193f47bc164becb7857c9fb8e6ee6679287f (diff)
neko: update for icccm renaming
-rw-r--r--neko/xcbneko.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/neko/xcbneko.c b/neko/xcbneko.c
index 32ac535..8df938e 100644
--- a/neko/xcbneko.c
+++ b/neko/xcbneko.c
@@ -680,38 +680,37 @@ InitScreen( char *DisplayName, char *theGeometry, char *theTitle, Bool iconicSta
/* new: obey the window-delete protocol, look for XCB_CLIENT_MESSAGE */
deleteWindowAtom = GetAtom(xc, "WM_DELETE_WINDOW");
- SetWMProtocols( xc, theWindow, 1, &deleteWindowAtom );
+ set_wm_protocols( xc, theWindow, 1, &deleteWindowAtom );
theIconPixmap = CreateBitmapFromData( xc, theWindow,
icon_bits, icon_width, icon_height );
- WMHints *theWMHints = AllocWMHints();
+ wm_hints_t *theWMHints = alloc_wm_hints();
- WMHintsSetIconPixmap( theWMHints, theIconPixmap );
+ wm_hints_set_icon_pixmap( theWMHints, theIconPixmap );
if ( iconicState )
- WMHintsSetIconic( theWMHints );
+ wm_hints_set_iconic( theWMHints );
else
- WMHintsSetNormal( theWMHints );
+ wm_hints_set_normal( theWMHints );
- SetWMHints( xc, theWindow, theWMHints);
+ set_wm_hints( xc, theWindow, theWMHints);
free( theWMHints );
/* why hide the structure? */
- SizeHints *theSizeHints = AllocSizeHints();
+ size_hints_t *theSizeHints = alloc_size_hints();
/* need enum for second param (user specified) */
- SizeHintsSetPosition(theSizeHints, 0, WindowPointX, WindowPointY);
- SizeHintsSetSize(theSizeHints, 0, WindowWidth, WindowHeight);
+ size_hints_set_position(theSizeHints, 0, WindowPointX, WindowPointY);
+ size_hints_set_size(theSizeHints, 0, WindowWidth, WindowHeight);
- SetWMNormalHints(xc, theWindow, theSizeHints);
+ set_wm_normal_hints(xc, theWindow, theSizeHints);
- FreeSizeHints(theSizeHints);
+ free_size_hints(theSizeHints);
- /* Um, why do I have to specify the encoding in this API? */
- SetWMName( xc, theWindow, STRING, strlen(theTitle), theTitle );
- SetWMIconName( xc, theWindow, STRING, strlen(theTitle), theTitle );
+ set_wm_name( xc, theWindow, STRING, strlen(theTitle), theTitle );
+ set_wm_icon_name( xc, theWindow, STRING, strlen(theTitle), theTitle );
xcb_map_window( xc, theWindow );