diff options
author | sabetts <sabetts> | 2006-03-16 01:00:43 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2006-03-16 01:00:43 +0000 |
commit | 73a3c5a465dbe5df9bed5f163d2c105065b861f2 (patch) | |
tree | 375b085a935bc6d6d467e0d4f2e48a2b6807fc1a /src/screen.c | |
parent | 9cb1a3d51b8cba35ef443c64b5b1d99fa8d33ae6 (diff) | |
download | ratpoison-73a3c5a465dbe5df9bed5f163d2c105065b861f2.zip |
* src/window.c (_XOPEN_SOURCE): new define
* src/screen.c (is_a_root_window): w is unsigned int
(init_screen): typecast _net_wm_pid as unsigned char*.
* src/main.c (read_rc_file): linesize is size_t
* src/frame.c (frame_read): use a temp var when reading the
:dedicated value.
* src/bar.c (max_line_length): i and start are size_t
(draw_string): i is size_t
(get_mark_box): mark_start and mark_end are size_t
* src/actions.c (find_keybinding): state is unsigned int
(remove_keybinding): likewise
(frame_selector): n is unsigned int
(frame_selector_match): i is size_t. typecast comparison as size_t.
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c index 4bf17c0..c24d477 100644 --- a/src/screen.c +++ b/src/screen.c @@ -163,7 +163,7 @@ find_screen (Window w) /* Return 1 if w is a root window of any of the screens. */ int -is_a_root_window (int w) +is_a_root_window (unsigned int w) { int i; for (i=0; i<num_screens; i++) @@ -271,7 +271,8 @@ init_screen (rp_screen *s, int screen_num) /* Add netwm support. FIXME: I think this is busted. */ XChangeProperty (dpy, RootWindow (dpy, screen_num), - _net_supported, XA_ATOM, 32, PropModeReplace, &_net_wm_pid, 1); + _net_supported, XA_ATOM, 32, PropModeReplace, + (unsigned char*)&_net_wm_pid, 1); /* Set the numset for the frames to our global numset. */ s->frames_numset = rp_frame_numset; |