projects
/
free-sw
/
xcb
/
demo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d545bbb
)
Adapt for recent util/icccm renaming.
author
Ian Osgood
<iano@quirkster.com>
Fri, 13 Apr 2007 20:36:42 +0000
(13:36 -0700)
committer
Ian Osgood
<iano@quirkster.com>
Fri, 13 Apr 2007 20:36:42 +0000
(13:36 -0700)
neko/xcbneko.c
patch
|
blob
|
history
diff --git
a/neko/xcbneko.c
b/neko/xcbneko.c
index
8df938e
..
23b150e
100644
(file)
--- a/
neko/xcbneko.c
+++ b/
neko/xcbneko.c
@@
-680,37
+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");
/* new: obey the window-delete protocol, look for XCB_CLIENT_MESSAGE */
deleteWindowAtom = GetAtom(xc, "WM_DELETE_WINDOW");
- set_wm_protocols( xc, theWindow, 1, &deleteWindowAtom );
+
xcb_
set_wm_protocols( xc, theWindow, 1, &deleteWindowAtom );
theIconPixmap = CreateBitmapFromData( xc, theWindow,
icon_bits, icon_width, icon_height );
theIconPixmap = CreateBitmapFromData( xc, theWindow,
icon_bits, icon_width, icon_height );
-
wm_hints_t *theWMHints =
alloc_wm_hints();
+
xcb_wm_hints_t *theWMHints = xcb_
alloc_wm_hints();
- wm_hints_set_icon_pixmap( theWMHints, theIconPixmap );
+
xcb_
wm_hints_set_icon_pixmap( theWMHints, theIconPixmap );
if ( iconicState )
if ( iconicState )
- wm_hints_set_iconic( theWMHints );
+
xcb_
wm_hints_set_iconic( theWMHints );
else
else
- wm_hints_set_normal( theWMHints );
+
xcb_
wm_hints_set_normal( theWMHints );
- set_wm_hints( xc, theWindow, theWMHints);
+
xcb_
set_wm_hints( xc, theWindow, theWMHints);
free( theWMHints );
/* why hide the structure? */
free( theWMHints );
/* why hide the structure? */
-
size_hints_t *theSizeHints =
alloc_size_hints();
+
xcb_size_hints_t *theSizeHints = xcb_
alloc_size_hints();
/* need enum for second param (user specified) */
/* need enum for second param (user specified) */
- size_hints_set_position(theSizeHints, 0, WindowPointX, WindowPointY);
- size_hints_set_size(theSizeHints, 0, WindowWidth, WindowHeight);
+
xcb_
size_hints_set_position(theSizeHints, 0, WindowPointX, WindowPointY);
+
xcb_
size_hints_set_size(theSizeHints, 0, WindowWidth, WindowHeight);
- set_wm_normal_hints(xc, theWindow, theSizeHints);
+
xcb_
set_wm_normal_hints(xc, theWindow, theSizeHints);
- free_size_hints(theSizeHints);
+
xcb_
free_size_hints(theSizeHints);
- set_wm_name( xc, theWindow, STRING, strlen(theTitle), theTitle );
- set_wm_icon_name( xc, theWindow, STRING, strlen(theTitle), theTitle );
+
xcb_
set_wm_name( xc, theWindow, STRING, strlen(theTitle), theTitle );
+
xcb_
set_wm_icon_name( xc, theWindow, STRING, strlen(theTitle), theTitle );
xcb_map_window( xc, theWindow );
xcb_map_window( xc, theWindow );