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:
parent
f94d51f0f1
commit
7471a58325
1 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue