Fix not updating in daemon mode

This commit is contained in:
Dave Davenport 2016-02-23 23:54:35 +01:00
parent 3f8efed56d
commit 5a204829f0
3 changed files with 13 additions and 15 deletions

View File

@ -42,15 +42,15 @@ typedef struct
typedef enum
{
TB_AUTOHEIGHT = 1 << 0,
TB_AUTOWIDTH = 1 << 1,
TB_LEFT = 1 << 16,
TB_RIGHT = 1 << 17,
TB_CENTER = 1 << 18,
TB_EDITABLE = 1 << 19,
TB_MARKUP = 1 << 20,
TB_WRAP = 1 << 21,
TB_PASSWORD = 1 << 22,
TB_AUTOHEIGHT = 1 << 0,
TB_AUTOWIDTH = 1 << 1,
TB_LEFT = 1 << 16,
TB_RIGHT = 1 << 17,
TB_CENTER = 1 << 18,
TB_EDITABLE = 1 << 19,
TB_MARKUP = 1 << 20,
TB_WRAP = 1 << 21,
TB_PASSWORD = 1 << 22,
} TextboxFlags;
typedef enum

View File

@ -124,7 +124,7 @@ static int winlist_append ( winlist *l, Window w, client *d )
static void winlist_empty ( winlist *l )
{
while ( l->len > 0 ) {
client *c = l->data[l->len];
client *c = l->data[--l->len];
if ( c != NULL ) {
g_free ( c->title );
g_free ( c->class );
@ -132,8 +132,6 @@ static void winlist_empty ( winlist *l )
g_free ( c->role );
g_free ( c );
}
l->len--;
}
}

View File

@ -252,6 +252,9 @@ void process_result ( RofiViewState *state )
}
// Cleanup
g_free ( input );
for ( unsigned int i = 0; i < num_modi; i++ ) {
mode_destroy ( modi[i] );
}
}
}
void process_result_error ( RofiViewState *state )
@ -353,9 +356,6 @@ static int grab_global_keybindings ()
*/
static void cleanup ()
{
for ( unsigned int i = 0; i < num_modi; i++ ) {
mode_destroy ( modi[i] );
}
rofi_view_workers_finalize ();
if ( main_loop != NULL ) {
if ( main_loop_source ) {