diff --git a/ChangeLog b/ChangeLog index 27f3d93..2631592 100644 --- a/ChangeLog +++ b/ChangeLog @@ -69,6 +69,7 @@ v.0.5dev (ongoing development) * Change drivers to start in background by default: bayrad, CFontz, ea65, glk * imon driver: Change hbars to make last char in-/decrease vertically + hd44780 driver: port usblcd connection type from 0.4.5 to 0.5 (M. Dolze) + * server: Fix interpretation of named screen priorities v.0.5.2 * fix switching on/off the Load screen in lcdproc client using the menu diff --git a/server/screen.c b/server/screen.c index 09a2495..c70f500 100644 --- a/server/screen.c +++ b/server/screen.c @@ -214,12 +214,13 @@ screen_find_widget(Screen *s, char *id) /** Convert a priority name to the priority id. * \param priname Name of the screen priority. - * \return Priority id associatited with \c priname. + * \return Priority id associated with \c priname, -1 if no matching priority + * id could be found. */ Priority screen_pri_name_to_pri(char *priname) { - Priority pri = WID_NONE; + Priority pri = -1; int i; for (i = 0; pri_names[i]; i++) {