1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-02-03 15:34:54 -05:00

Fix if active and urgent are both set.

This commit is contained in:
Qball Cow 2015-10-26 14:22:58 +01:00
parent f94d51f0f1
commit 7471a58325

View file

@ -96,7 +96,12 @@ textbox* textbox_create ( TextboxFlags flags, short x, short y, short w, short h
void textbox_font ( textbox *tb, TextBoxFontType tbft )
{
RowColor *color = &( colors[tbft & STATE_MASK] );
TextBoxFontType t = tbft & STATE_MASK;
// ACTIVE has priority over URGENT if both set.
if ( t == ( URGENT | ACTIVE ) ) {
t = ACTIVE;
}
RowColor *color = &( colors[t] );
switch ( ( tbft & FMOD_MASK ) )
{
case HIGHLIGHT: