Browse Source

Remove some more unused function arguments

We no longer use libxcb-event, so we don't have to follow it's API any more.
This means the pointless arguments and return values can be removed.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Uli Schlachter 9 years ago
parent
commit
fa5a25637d
4 changed files with 71 additions and 163 deletions
  1. 0
    1
      awesomeConfig.cmake
  2. 64
    149
      event.c
  3. 6
    10
      property.c
  4. 1
    3
      property.h

+ 0
- 1
awesomeConfig.cmake View File

@@ -141,7 +141,6 @@ pkg_check_modules(AWESOME_REQUIRED REQUIRED
141 141
     xcb-xtest
142 142
     xcb-xinerama
143 143
     xcb-shape
144
-    xcb-event>=0.3.6
145 144
     xcb-aux>=0.3.0
146 145
     xcb-atom>=0.3.0
147 146
     xcb-keysyms>=0.3.4

+ 64
- 149
event.c View File

@@ -128,20 +128,18 @@ event_handle_mousegrabber(int x, int y, uint16_t mask)
128 128
 }
129 129
 
130 130
 /** The button press event handler.
131
- * \param data The type of mouse event.
132
- * \param connection The connection to the X server.
133 131
  * \param ev The event.
134 132
  */
135
-static int
136
-event_handle_button(void *data, xcb_connection_t *connection, xcb_button_press_event_t *ev)
133
+static void
134
+event_handle_button(xcb_button_press_event_t *ev)
137 135
 {
138 136
     int screen;
139
-    const int nb_screen = xcb_setup_roots_length(xcb_get_setup(connection));
137
+    const int nb_screen = xcb_setup_roots_length(xcb_get_setup(globalconf.connection));
140 138
     client_t *c;
141 139
     wibox_t *wibox;
142 140
 
143 141
     if(event_handle_mousegrabber(ev->root_x, ev->root_y, 1 << (ev->detail - 1 + 8)))
144
-        return 0;
142
+        return;
145 143
 
146 144
     /* ev->state is
147 145
      * button status (8 bits) + modifiers status (8 bits)
@@ -195,13 +193,11 @@ event_handle_button(void *data, xcb_connection_t *connection, xcb_button_press_e
195 193
     }
196 194
     else if(ev->child == XCB_NONE)
197 195
         for(screen = 0; screen < nb_screen; screen++)
198
-            if(xutil_screen_get(connection, screen)->root == ev->event)
196
+            if(xutil_screen_get(globalconf.connection, screen)->root == ev->event)
199 197
             {
200 198
                 event_button_callback(ev, &globalconf.buttons, 0, 0, NULL);
201
-                return 0;
199
+                return;
202 200
             }
203
-
204
-    return 0;
205 201
 }
206 202
 
207 203
 static void
@@ -251,13 +247,10 @@ event_handle_configurerequest_configure_window(xcb_configure_request_event_t *ev
251 247
 }
252 248
 
253 249
 /** The configure event handler.
254
- * \param data currently unused.
255
- * \param connection The connection to the X server.
256 250
  * \param ev The event.
257 251
  */
258
-static int
259
-event_handle_configurerequest(void *data __attribute__ ((unused)),
260
-                              xcb_connection_t *connection, xcb_configure_request_event_t *ev)
252
+static void
253
+event_handle_configurerequest(xcb_configure_request_event_t *ev)
261 254
 {
262 255
     client_t *c;
263 256
 
@@ -286,42 +279,31 @@ event_handle_configurerequest(void *data __attribute__ ((unused)),
286 279
     }
287 280
     else
288 281
         event_handle_configurerequest_configure_window(ev);
289
-
290
-    return 0;
291 282
 }
292 283
 
293 284
 /** The configure notify event handler.
294
- * \param data currently unused.
295
- * \param connection The connection to the X server.
296 285
  * \param ev The event.
297 286
  */
298
-static int
299
-event_handle_configurenotify(void *data __attribute__ ((unused)),
300
-                             xcb_connection_t *connection, xcb_configure_notify_event_t *ev)
287
+static void
288
+event_handle_configurenotify(xcb_configure_notify_event_t *ev)
301 289
 {
302 290
     int screen_nbr;
303 291
     const xcb_screen_t *screen;
304 292
 
305
-    for(screen_nbr = 0; screen_nbr < xcb_setup_roots_length(xcb_get_setup (connection)); screen_nbr++)
306
-        if((screen = xutil_screen_get(connection, screen_nbr)) != NULL
293
+    for(screen_nbr = 0; screen_nbr < xcb_setup_roots_length(xcb_get_setup(globalconf.connection)); screen_nbr++)
294
+        if((screen = xutil_screen_get(globalconf.connection, screen_nbr)) != NULL
307 295
            && ev->window == screen->root
308 296
            && (ev->width != screen->width_in_pixels
309 297
                || ev->height != screen->height_in_pixels))
310 298
             /* it's not that we panic, but restart */
311 299
             awesome_restart();
312
-
313
-    return 0;
314 300
 }
315 301
 
316 302
 /** The destroy notify event handler.
317
- * \param data currently unused.
318
- * \param connection The connection to the X server.
319 303
  * \param ev The event.
320 304
  */
321
-static int
322
-event_handle_destroynotify(void *data __attribute__ ((unused)),
323
-                           xcb_connection_t *connection __attribute__ ((unused)),
324
-                           xcb_destroy_notify_event_t *ev)
305
+static void
306
+event_handle_destroynotify(xcb_destroy_notify_event_t *ev)
325 307
 {
326 308
     client_t *c;
327 309
 
@@ -334,8 +316,6 @@ event_handle_destroynotify(void *data __attribute__ ((unused)),
334 316
                 xembed_window_array_take(&globalconf.embedded, i);
335 317
                 widget_invalidate_bytype(widget_systray);
336 318
             }
337
-
338
-    return 0;
339 319
 }
340 320
 
341 321
 /** Handle a motion notify over widgets.
@@ -399,19 +379,15 @@ event_handle_widget_motionnotify(wibox_t *wibox,
399 379
 }
400 380
 
401 381
 /** The motion notify event handler.
402
- * \param data currently unused.
403
- * \param connection The connection to the X server.
404 382
  * \param ev The event.
405 383
  */
406
-static int
407
-event_handle_motionnotify(void *data __attribute__ ((unused)),
408
-                          xcb_connection_t *connection,
409
-                          xcb_motion_notify_event_t *ev)
384
+static void
385
+event_handle_motionnotify(xcb_motion_notify_event_t *ev)
410 386
 {
411 387
     wibox_t *wibox;
412 388
 
413 389
     if(event_handle_mousegrabber(ev->root_x, ev->root_y, ev->state))
414
-        return 0;
390
+        return;
415 391
 
416 392
     if((wibox = wibox_getbywin(ev->event)))
417 393
     {
@@ -422,25 +398,19 @@ event_handle_motionnotify(void *data __attribute__ ((unused)),
422 398
 
423 399
         event_handle_widget_motionnotify(wibox, w);
424 400
     }
425
-
426
-    return 0;
427 401
 }
428 402
 
429 403
 /** The leave notify event handler.
430
- * \param data currently unused.
431
- * \param connection The connection to the X server.
432 404
  * \param ev The event.
433 405
  */
434
-static int
435
-event_handle_leavenotify(void *data __attribute__ ((unused)),
436
-                         xcb_connection_t *connection,
437
-                         xcb_leave_notify_event_t *ev)
406
+static void
407
+event_handle_leavenotify(xcb_leave_notify_event_t *ev)
438 408
 {
439 409
     wibox_t *wibox;
440 410
     client_t *c;
441 411
 
442 412
     if(ev->mode != XCB_NOTIFY_MODE_NORMAL)
443
-        return 0;
413
+        return;
444 414
 
445 415
     if((c = client_getbywin(ev->event)))
446 416
     {
@@ -471,25 +441,19 @@ event_handle_leavenotify(void *data __attribute__ ((unused)),
471 441
         luaA_object_emit_signal(globalconf.L, -1, "mouse::leave", 0);
472 442
         lua_pop(globalconf.L, 1);
473 443
     }
474
-
475
-    return 0;
476 444
 }
477 445
 
478 446
 /** The enter notify event handler.
479
- * \param data currently unused.
480
- * \param connection The connection to the X server.
481 447
  * \param ev The event.
482 448
  */
483
-static int
484
-event_handle_enternotify(void *data __attribute__ ((unused)),
485
-                         xcb_connection_t *connection,
486
-                         xcb_enter_notify_event_t *ev)
449
+static void
450
+event_handle_enternotify(xcb_enter_notify_event_t *ev)
487 451
 {
488 452
     client_t *c;
489 453
     wibox_t *wibox;
490 454
 
491 455
     if(ev->mode != XCB_NOTIFY_MODE_NORMAL)
492
-        return 0;
456
+        return;
493 457
 
494 458
     if((wibox = wibox_getbywin(ev->event)))
495 459
     {
@@ -511,19 +475,13 @@ event_handle_enternotify(void *data __attribute__ ((unused)),
511 475
         luaA_object_emit_signal(globalconf.L, -1, "mouse::enter", 0);
512 476
         lua_pop(globalconf.L, 1);
513 477
     }
514
-
515
-    return 0;
516 478
 }
517 479
 
518 480
 /** The focus in event handler.
519
- * \param data currently unused.
520
- * \param connection The connection to the X server.
521 481
  * \param ev The event.
522 482
  */
523
-static int
524
-event_handle_focusin(void *data __attribute__ ((unused)),
525
-                     xcb_connection_t *connection,
526
-                     xcb_focus_in_event_t *ev)
483
+static void
484
+event_handle_focusin(xcb_focus_in_event_t *ev)
527 485
 {
528 486
     /* Events that we are interested in: */
529 487
     switch(ev->detail)
@@ -548,18 +506,13 @@ event_handle_focusin(void *data __attribute__ ((unused)),
548 506
         default:
549 507
             break;
550 508
     }
551
-    return 0;
552 509
 }
553 510
 
554 511
 /** The expose event handler.
555
- * \param data currently unused.
556
- * \param connection The connection to the X server.
557 512
  * \param ev The event.
558 513
  */
559
-static int
560
-event_handle_expose(void *data __attribute__ ((unused)),
561
-                    xcb_connection_t *connection __attribute__ ((unused)),
562
-                    xcb_expose_event_t *ev)
514
+static void
515
+event_handle_expose(xcb_expose_event_t *ev)
563 516
 {
564 517
     wibox_t *wibox;
565 518
 
@@ -570,19 +523,13 @@ event_handle_expose(void *data __attribute__ ((unused)),
570 523
         wibox_refresh_pixmap_partial(wibox,
571 524
                                      ev->x, ev->y,
572 525
                                      ev->width, ev->height);
573
-
574
-    return 0;
575 526
 }
576 527
 
577 528
 /** The key press event handler.
578
- * \param data currently unused.
579
- * \param connection The connection to the X server.
580 529
  * \param ev The event.
581 530
  */
582
-static int
583
-event_handle_key(void *data __attribute__ ((unused)),
584
-                 xcb_connection_t *connection __attribute__ ((unused)),
585
-                 xcb_key_press_event_t *ev)
531
+static void
532
+event_handle_key(xcb_key_press_event_t *ev)
586 533
 {
587 534
     if(globalconf.keygrabber != LUA_REFNIL)
588 535
     {
@@ -612,38 +559,33 @@ event_handle_key(void *data __attribute__ ((unused)),
612 559
         else
613 560
             event_key_callback(ev, &globalconf.keys, 0, 0, &keysym);
614 561
     }
615
-
616
-    return 0;
617 562
 }
618 563
 
619 564
 /** The map request event handler.
620
- * \param data currently unused.
621
- * \param connection The connection to the X server.
622 565
  * \param ev The event.
623 566
  */
624
-static int
625
-event_handle_maprequest(void *data __attribute__ ((unused)),
626
-                        xcb_connection_t *connection, xcb_map_request_event_t *ev)
567
+static void
568
+event_handle_maprequest(xcb_map_request_event_t *ev)
627 569
 {
628
-    int phys_screen, ret = 0;
570
+    int phys_screen;
629 571
     client_t *c;
630 572
     xcb_get_window_attributes_cookie_t wa_c;
631 573
     xcb_get_window_attributes_reply_t *wa_r;
632 574
     xcb_get_geometry_cookie_t geom_c;
633 575
     xcb_get_geometry_reply_t *geom_r;
634 576
 
635
-    wa_c = xcb_get_window_attributes_unchecked(connection, ev->window);
577
+    wa_c = xcb_get_window_attributes_unchecked(globalconf.connection, ev->window);
636 578
 
637
-    if(!(wa_r = xcb_get_window_attributes_reply(connection, wa_c, NULL)))
638
-        return -1;
579
+    if(!(wa_r = xcb_get_window_attributes_reply(globalconf.connection, wa_c, NULL)))
580
+        return;
639 581
 
640 582
     if(wa_r->override_redirect)
641 583
         goto bailout;
642 584
 
643 585
     if(xembed_getbywin(&globalconf.embedded, ev->window))
644 586
     {
645
-        xcb_map_window(connection, ev->window);
646
-        xembed_window_activate(connection, ev->window);
587
+        xcb_map_window(globalconf.connection, ev->window);
588
+        xembed_window_activate(globalconf.connection, ev->window);
647 589
     }
648 590
     else if((c = client_getbywin(ev->window)))
649 591
     {
@@ -659,15 +601,14 @@ event_handle_maprequest(void *data __attribute__ ((unused)),
659 601
     }
660 602
     else
661 603
     {
662
-        geom_c = xcb_get_geometry_unchecked(connection, ev->window);
604
+        geom_c = xcb_get_geometry_unchecked(globalconf.connection, ev->window);
663 605
 
664
-        if(!(geom_r = xcb_get_geometry_reply(connection, geom_c, NULL)))
606
+        if(!(geom_r = xcb_get_geometry_reply(globalconf.connection, geom_c, NULL)))
665 607
         {
666
-            ret = -1;
667 608
             goto bailout;
668 609
         }
669 610
 
670
-        phys_screen = xutil_root2screen(connection, geom_r->root);
611
+        phys_screen = xutil_root2screen(globalconf.connection, geom_r->root);
671 612
 
672 613
         client_manage(ev->window, geom_r, phys_screen, false);
673 614
 
@@ -676,27 +617,23 @@ event_handle_maprequest(void *data __attribute__ ((unused)),
676 617
 
677 618
 bailout:
678 619
     p_delete(&wa_r);
679
-    return ret;
680 620
 }
681 621
 
682 622
 /** The unmap notify event handler.
683
- * \param data currently unused.
684
- * \param connection The connection to the X server.
685 623
  * \param ev The event.
686 624
  */
687
-static int
688
-event_handle_unmapnotify(void *data __attribute__ ((unused)),
689
-                         xcb_connection_t *connection, xcb_unmap_notify_event_t *ev)
625
+static void
626
+event_handle_unmapnotify(xcb_unmap_notify_event_t *ev)
690 627
 {
691 628
     client_t *c;
692 629
 
693 630
     if((c = client_getbywin(ev->window)))
694 631
     {
695
-        if(ev->event == xutil_screen_get(connection, c->phys_screen)->root
632
+        if(ev->event == xutil_screen_get(globalconf.connection, c->phys_screen)->root
696 633
            && XCB_EVENT_SENT(ev))
697 634
         {
698 635
             client_unmanage(c);
699
-            xcb_unmap_window(connection, ev->window);
636
+            xcb_unmap_window(globalconf.connection, ev->window);
700 637
         }
701 638
     }
702 639
     else
@@ -707,28 +644,22 @@ event_handle_unmapnotify(void *data __attribute__ ((unused)),
707 644
                 widget_invalidate_bytype(widget_systray);
708 645
                 xcb_change_save_set(globalconf.connection, XCB_SET_MODE_DELETE, ev->window);
709 646
             }
710
-
711
-    return 0;
712 647
 }
713 648
 
714 649
 /** The randr screen change notify event handler.
715
- * \param data currently unused.
716
- * \param connection The connection to the X server.
717 650
  * \param ev The event.
718 651
  */
719
-static int
720
-event_handle_randr_screen_change_notify(void *data __attribute__ ((unused)),
721
-                                        xcb_connection_t *connection __attribute__ ((unused)),
722
-                                        xcb_randr_screen_change_notify_event_t *ev)
652
+static void
653
+event_handle_randr_screen_change_notify(xcb_randr_screen_change_notify_event_t *ev)
723 654
 {
724 655
     /* Code  of  XRRUpdateConfiguration Xlib  function  ported to  XCB
725 656
      * (only the code relevant  to RRScreenChangeNotify) as the latter
726 657
      * doesn't provide this kind of function */
727 658
     if(ev->rotation & (XCB_RANDR_ROTATION_ROTATE_90 | XCB_RANDR_ROTATION_ROTATE_270))
728
-        xcb_randr_set_screen_size(connection, ev->root, ev->height, ev->width,
659
+        xcb_randr_set_screen_size(globalconf.connection, ev->root, ev->height, ev->width,
729 660
                                   ev->mheight, ev->mwidth);
730 661
     else
731
-        xcb_randr_set_screen_size(connection, ev->root, ev->width, ev->height,
662
+        xcb_randr_set_screen_size(globalconf.connection, ev->root, ev->width, ev->height,
732 663
                                   ev->mwidth, ev->mheight);
733 664
 
734 665
     /* XRRUpdateConfiguration also executes the following instruction
@@ -739,23 +670,17 @@ event_handle_randr_screen_change_notify(void *data __attribute__ ((unused)),
739 670
      */
740 671
 
741 672
     awesome_restart();
742
-
743
-    return 0;
744 673
 }
745 674
 
746 675
 /** The client message event handler.
747
- * \param data currently unused.
748
- * \param connection The connection to the X server.
749 676
  * \param ev The event.
750 677
  */
751
-static int
752
-event_handle_clientmessage(void *data __attribute__ ((unused)),
753
-                           xcb_connection_t *connection,
754
-                           xcb_client_message_event_t *ev)
678
+static void
679
+event_handle_clientmessage(xcb_client_message_event_t *ev)
755 680
 {
756 681
     /* check for startup notification messages */
757 682
     if(sn_xcb_display_process_event(globalconf.sndisplay, (xcb_generic_event_t *) ev))
758
-        return 0;
683
+        return;
759 684
 
760 685
     if(ev->type == WM_CHANGE_STATE)
761 686
     {
@@ -770,22 +695,18 @@ event_handle_clientmessage(void *data __attribute__ ((unused)),
770 695
         }
771 696
     }
772 697
     else if(ev->type == _XEMBED)
773
-        return xembed_process_client_message(ev);
698
+        xembed_process_client_message(ev);
774 699
     else if(ev->type == _NET_SYSTEM_TRAY_OPCODE)
775
-        return systray_process_client_message(ev);
776
-    return ewmh_process_client_message(ev);
700
+        systray_process_client_message(ev);
701
+    else
702
+        ewmh_process_client_message(ev);
777 703
 }
778 704
 
779 705
 /** The keymap change notify event handler.
780
- * \param data Unused data.
781
- * \param connection The connection to the X server.
782 706
  * \param ev The event.
783
- * \return Status code, 0 if everything's fine.
784 707
  */
785
-static int
786
-event_handle_mappingnotify(void *data,
787
-                           xcb_connection_t *connection,
788
-                           xcb_mapping_notify_event_t *ev)
708
+static void
709
+event_handle_mappingnotify(xcb_mapping_notify_event_t *ev)
789 710
 {
790 711
     if(ev->request == XCB_MAPPING_MODIFIER
791 712
        || ev->request == XCB_MAPPING_KEYBOARD)
@@ -802,39 +723,33 @@ event_handle_mappingnotify(void *data,
802 723
                             &globalconf.shiftlockmask, &globalconf.capslockmask,
803 724
                             &globalconf.modeswitchmask);
804 725
 
805
-        int nscreen = xcb_setup_roots_length(xcb_get_setup(connection));
726
+        int nscreen = xcb_setup_roots_length(xcb_get_setup(globalconf.connection));
806 727
 
807 728
         /* regrab everything */
808 729
         for(int phys_screen = 0; phys_screen < nscreen; phys_screen++)
809 730
         {
810 731
             xcb_screen_t *s = xutil_screen_get(globalconf.connection, phys_screen);
811 732
             /* yes XCB_BUTTON_MASK_ANY is also for grab_key even if it's look weird */
812
-            xcb_ungrab_key(connection, XCB_GRAB_ANY, s->root, XCB_BUTTON_MASK_ANY);
733
+            xcb_ungrab_key(globalconf.connection, XCB_GRAB_ANY, s->root, XCB_BUTTON_MASK_ANY);
813 734
             xwindow_grabkeys(s->root, &globalconf.keys);
814 735
         }
815 736
 
816 737
         foreach(_c, globalconf.clients)
817 738
         {
818 739
             client_t *c = *_c;
819
-            xcb_ungrab_key(connection, XCB_GRAB_ANY, c->window, XCB_BUTTON_MASK_ANY);
740
+            xcb_ungrab_key(globalconf.connection, XCB_GRAB_ANY, c->window, XCB_BUTTON_MASK_ANY);
820 741
             xwindow_grabkeys(c->window, &c->keys);
821 742
         }
822 743
     }
823
-
824
-    return 0;
825 744
 }
826 745
 
827
-static int
828
-event_handle_reparentnotify(void *data,
829
-                           xcb_connection_t *connection,
830
-                           xcb_reparent_notify_event_t *ev)
746
+static void
747
+event_handle_reparentnotify(xcb_reparent_notify_event_t *ev)
831 748
 {
832 749
     client_t *c;
833 750
 
834 751
     if((c = client_getbywin(ev->window)))
835 752
         client_unmanage(c);
836
-
837
-    return 0;
838 753
 }
839 754
 
840 755
 /** \brief awesome xerror function.
@@ -875,7 +790,7 @@ void event_handle(xcb_generic_event_t *event)
875 790
 
876 791
     switch(response_type)
877 792
     {
878
-#define EVENT(type, callback) case type: callback(NULL, globalconf.connection, (void *) event); return
793
+#define EVENT(type, callback) case type: callback((void *) event); return
879 794
         EVENT(XCB_BUTTON_PRESS, event_handle_button);
880 795
         EVENT(XCB_BUTTON_RELEASE, event_handle_button);
881 796
         EVENT(XCB_CONFIGURE_REQUEST, event_handle_configurerequest);
@@ -909,7 +824,7 @@ void event_handle(xcb_generic_event_t *event)
909 824
     }
910 825
 
911 826
     if (response_type == randr_screen_change_notify)
912
-        event_handle_randr_screen_change_notify(NULL, globalconf.connection, (void *) event);
827
+        event_handle_randr_screen_change_notify((void *) event);
913 828
 }
914 829
 
915 830
 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

+ 6
- 10
property.c View File

@@ -406,10 +406,8 @@ property_handle_net_wm_opacity(uint8_t state,
406 406
  * \param ev The event.
407 407
  * \return Status code, 0 if everything's fine.
408 408
  */
409
-int
410
-property_handle_propertynotify(void *data,
411
-                               xcb_connection_t *c,
412
-                               xcb_property_notify_event_t *ev)
409
+void
410
+property_handle_propertynotify(xcb_property_notify_event_t *ev)
413 411
 {
414 412
     uint32_t length;
415 413
     int (*handler)(uint8_t state,
@@ -426,7 +424,7 @@ property_handle_propertynotify(void *data,
426 424
     } else
427 425
 #define HANDLE_L(atom, cb) HANDLE(atom, cb, UINT_MAX)
428 426
 #define HANDLE_S(atom, cb) HANDLE(atom, cb, 1)
429
-#define END return 0
427
+#define END return
430 428
 
431 429
     /* Xembed stuff */
432 430
     HANDLE_L(_XEMBED_INFO, property_handle_xembed_info)
@@ -466,15 +464,13 @@ property_handle_propertynotify(void *data,
466 464
     if(ev->state != XCB_PROPERTY_DELETE)
467 465
     {
468 466
         xcb_get_property_cookie_t cookie =
469
-            xcb_get_property(c, 0, ev->window, ev->atom,
467
+            xcb_get_property(globalconf.connection, 0, ev->window, ev->atom,
470 468
                              XCB_GET_PROPERTY_TYPE_ANY, 0, length);
471
-        propr = xcb_get_property_reply(c, cookie, 0);
469
+        propr = xcb_get_property_reply(globalconf.connection, cookie, 0);
472 470
     }
473 471
 
474
-    int ret = (*handler)(ev->state, ev->window, ev->atom, propr);
475
-
472
+    (*handler)(ev->state, ev->window, ev->atom, propr);
476 473
     p_delete(&propr);
477
-    return ret;
478 474
 }
479 475
 
480 476
 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

+ 1
- 3
property.h View File

@@ -39,9 +39,7 @@ void property_update_wm_window_role(client_t *, xcb_get_property_reply_t *);
39 39
 void property_update_net_wm_pid(client_t *, xcb_get_property_reply_t *);
40 40
 void property_update_net_wm_icon(client_t *, xcb_get_property_reply_t *);
41 41
 
42
-int property_handle_propertynotify(void *data,
43
-                                   xcb_connection_t *c,
44
-                                   xcb_property_notify_event_t *ev);
42
+void property_handle_propertynotify(xcb_property_notify_event_t *ev);
45 43
 
46 44
 #endif
47 45
 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

Loading…
Cancel
Save