diff options
author | Max Kellermann <max@duempel.org> | 2008-09-22 10:04:46 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-22 10:04:46 +0200 |
commit | e6d6231b4de336f60bc5b07331e2f1f01096c66c (patch) | |
tree | ca99bb77e967d794af8b88aebd3fdf9c50dc474b /src/screen.h | |
parent | 07632841df4ff1d8fcfac33bd93e06ee43a4498e (diff) | |
download | mpd-e6d6231b4de336f60bc5b07331e2f1f01096c66c.tar.gz mpd-e6d6231b4de336f60bc5b07331e2f1f01096c66c.tar.xz mpd-e6d6231b4de336f60bc5b07331e2f1f01096c66c.zip |
screen: moved list_window mouse code to list_window.c
Move the portion of screen_get_mouse_event() which handles list_window
clicks to list_window.c. The code contained a NULL pointer
dereference, which is now fixed.
Diffstat (limited to '')
-rw-r--r-- | src/screen.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/screen.h b/src/screen.h index ca0dd2a0c..6f98d1e4d 100644 --- a/src/screen.h +++ b/src/screen.h @@ -13,8 +13,6 @@ #define MAX_SONGNAME_LENGTH 512 -struct list_window; - struct window { WINDOW *w; int rows, cols; @@ -83,8 +81,6 @@ gint screen_get_id(const char *name); gint get_cur_mode_id(void); -int screen_get_mouse_event(mpdclient_t *c, - struct list_window *lw, int lw_length, - unsigned long *bstate, int *row); +int screen_get_mouse_event(mpdclient_t *c, unsigned long *bstate, int *row); #endif |