fix interpretation of numeric priorities (Andrew M. Bishop)
This commit is contained in:
@@ -52,6 +52,7 @@ v.0.5dev (ongoing development)
|
|||||||
* IOWarrior driver: fixed 4-line display use
|
* IOWarrior driver: fixed 4-line display use
|
||||||
+ IOWarrior driver: add ExtendedMode option
|
+ IOWarrior driver: add ExtendedMode option
|
||||||
* lcdproc: unbreak compilation on OS X 1.5 and higher (Topher Fangio)
|
* lcdproc: unbreak compilation on OS X 1.5 and higher (Topher Fangio)
|
||||||
|
* server: fix interpretation of numeric priorities (Andrew M. Bishop)
|
||||||
|
|
||||||
v.0.5.2
|
v.0.5.2
|
||||||
* fix switching on/off the Load screen in lcdproc client using the menu
|
* fix switching on/off the Load screen in lcdproc client using the menu
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ screen_set_func(Client *c, int argc, char **argv)
|
|||||||
|
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
sock_send_error(c->sock, "Usage: screen_set <id> [-name <name>]"
|
sock_send_error(c->sock, "Usage: screen_set <id> [-name <name>]"
|
||||||
" [-wid <width>] [-hgt <height>] [-priority <int>]"
|
" [-wid <width>] [-hgt <height>] [-priority <prio>]"
|
||||||
" [-duration <int>] [-timeout <int>]"
|
" [-duration <int>] [-timeout <int>]"
|
||||||
" [-heartbeat <type>] [-backlight <type>]"
|
" [-heartbeat <type>] [-backlight <type>]"
|
||||||
" [-cursor <type>]"
|
" [-cursor <type>]"
|
||||||
@@ -196,11 +196,11 @@ screen_set_func(Client *c, int argc, char **argv)
|
|||||||
number = atoi(argv[i]);
|
number = atoi(argv[i]);
|
||||||
if (number > 0) {
|
if (number > 0) {
|
||||||
if (number <= 64)
|
if (number <= 64)
|
||||||
s->priority = PRI_FOREGROUND;
|
number = PRI_FOREGROUND;
|
||||||
else if (number < 192)
|
else if (number < 192)
|
||||||
s->priority = PRI_INFO;
|
number = PRI_INFO;
|
||||||
else
|
else
|
||||||
s->priority = PRI_BACKGROUND;
|
number = PRI_BACKGROUND;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Try if it is a priority class */
|
/* Try if it is a priority class */
|
||||||
|
|||||||
Reference in New Issue
Block a user