diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2011-04-02 19:32:59 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2011-04-02 19:32:59 +0200 |
commit | e7201e2df53e740e364d6d0992a1c6e329909e06 (patch) | |
tree | d790006f96c2837e97355f8bd2457b2249209943 /i3lock.c | |
parent | ea9088ae96cdbee8949969eb12b9588ea60e8c85 (diff) |
Mark handle_visibility_notify and handle_mapping_notify as static
Diffstat (limited to 'i3lock.c')
-rw-r--r-- | i3lock.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -211,10 +211,8 @@ static void handle_key_press(xcb_key_press_event_t *event) { * hiding us) gets hidden. * */ -void handle_visibility_notify(xcb_visibility_notify_event_t *event) { - printf("visibility notify (window 0x%08x, state %d)\n", event->window, event->state); +static void handle_visibility_notify(xcb_visibility_notify_event_t *event) { if (event->state != XCB_VISIBILITY_UNOBSCURED) { - printf("window is obscured (not fully visible), raising\n"); uint32_t values[] = { XCB_STACK_MODE_ABOVE }; xcb_configure_window(conn, event->window, XCB_CONFIG_WINDOW_STACK_MODE, values); xcb_flush(conn); @@ -226,8 +224,7 @@ void handle_visibility_notify(xcb_visibility_notify_event_t *event) { * pointer/keyboard. * */ -void handle_mapping_notify(xcb_mapping_notify_event_t *event) { - printf("mapping notify\n"); +static void handle_mapping_notify(xcb_mapping_notify_event_t *event) { xcb_refresh_keyboard_mapping(symbols, event); xcb_ungrab_pointer(conn, XCB_CURRENT_TIME); |