X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=include%2Fclick.h;h=0d57abf7f6f7dbd3e2ce830461b0a53fd5f31b4f;hp=de977ea4873aaabd12c2a4ca36d0d418e62312af;hb=HEAD;hpb=d9ca8e8d1a93139059b02c9b8eb9480911869978 diff --git a/include/click.h b/include/click.h index de977ea4..0d57abf7 100644 --- a/include/click.h +++ b/include/click.h @@ -1,16 +1,22 @@ /* - * vim:ts=8:expandtab + * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager + * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * - * © 2009 Michael Stapelberg and contributors - * - * See file LICENSE for license information. + * click.c: Button press (mouse click) events. * */ -#ifndef _CLICK_H -#define _CLICK_H +#pragma once -int handle_button_press(void *ignored, xcb_connection_t *conn, xcb_button_press_event_t *event); +#include -#endif +/** + * The button press X callback. This function determines whether the floating + * modifier is pressed and where the user clicked (decoration, border, inside + * the window). + * + * Then, route_click is called on the appropriate con. + * + */ +int handle_button_press(xcb_button_press_event_t *event);