@@ -341,7 +341,7 @@ static int _tasks_get_current_desktop(Tasks * tasks)
341
341
342
342
if (_tasks_get_window_property (tasks , GDK_WINDOW_XID (tasks -> root ),
343
343
TASKS_ATOM__NET_CURRENT_DESKTOP , XA_CARDINAL ,
344
- & cnt , (void * )& p ) != 0 )
344
+ & cnt , (void * )& p ) != 0 )
345
345
return -1 ;
346
346
cnt = * p ;
347
347
XFree (p );
@@ -448,7 +448,7 @@ static void _tasks_do(Tasks * tasks)
448
448
#endif
449
449
if (_tasks_get_window_property (tasks , GDK_WINDOW_XID (tasks -> root ),
450
450
TASKS_ATOM__NET_CLIENT_LIST ,
451
- XA_WINDOW , & cnt , (void * )& windows ) != 0 )
451
+ XA_WINDOW , & cnt , (void * )& windows ) != 0 )
452
452
return ;
453
453
desktop = _tasks_get_current_desktop (tasks );
454
454
for (i = 0 ; i < tasks -> tasks_cnt ; i ++ )
@@ -486,7 +486,7 @@ static char * _do_name_text(Tasks * tasks, Window window, Atom property)
486
486
{
487
487
char * ret = NULL ;
488
488
489
- if (_tasks_get_text_property (tasks , window , property , (void * )& ret ) != 0 )
489
+ if (_tasks_get_text_property (tasks , window , property , (void * )& ret ) != 0 )
490
490
return NULL ;
491
491
return ret ;
492
492
}
@@ -499,7 +499,7 @@ static char * _do_name_utf8(Tasks * tasks, Window window, Atom property)
499
499
500
500
if (_tasks_get_window_property (tasks , window , property ,
501
501
tasks -> atom [TASKS_ATOM_UTF8_STRING ], & cnt ,
502
- (void * )& str ) != 0 )
502
+ (void * )& str ) != 0 )
503
503
return NULL ;
504
504
if (g_utf8_validate (str , cnt , NULL ))
505
505
ret = g_strndup (str , cnt );
@@ -522,7 +522,7 @@ static GdkPixbuf * _do_pixbuf(Tasks * tasks, Window window)
522
522
unsigned long * best = NULL ;
523
523
524
524
if (_tasks_get_window_property (tasks , window , TASKS_ATOM__NET_WM_ICON ,
525
- XA_CARDINAL , & cnt , (void * )& buf ) != 0 )
525
+ XA_CARDINAL , & cnt , (void * )& buf ) != 0 )
526
526
return NULL ;
527
527
for (i = 0 ; i < cnt - 3 ; i += 2 + (width * height ))
528
528
{
@@ -585,7 +585,7 @@ static int _do_tasks_add(Tasks * tasks, int desktop, Window window,
585
585
586
586
#ifndef EMBEDDED
587
587
if (_tasks_get_window_property (tasks , window , TASKS_ATOM__NET_WM_DESKTOP ,
588
- XA_CARDINAL , & cnt , (void * )& l ) == 0 )
588
+ XA_CARDINAL , & cnt , (void * )& l ) == 0 )
589
589
{
590
590
if (cnt == 1 )
591
591
cur = * l ;
@@ -652,7 +652,7 @@ static int _do_typehint_normal(Tasks * tasks, Window window)
652
652
653
653
if (_tasks_get_window_property (tasks , window ,
654
654
TASKS_ATOM__NET_WM_WINDOW_TYPE , XA_ATOM , & cnt ,
655
- (void * )& p ) == 0 )
655
+ (void * )& p ) == 0 )
656
656
{
657
657
typehint = * p ;
658
658
XFree (p );
@@ -780,7 +780,7 @@ static gboolean _on_popup(gpointer data)
780
780
781
781
if (_tasks_get_window_property (task -> tasks , task -> window ,
782
782
TASKS_ATOM__NET_WM_ALLOWED_ACTIONS , XA_ATOM ,
783
- & cnt , (void * )& buf ) != 0 )
783
+ & cnt , (void * )& buf ) != 0 )
784
784
return FALSE;
785
785
for (i = 0 ; i < cnt ; i ++ )
786
786
{
0 commit comments