From: Michael Stapelberg Date: Wed, 16 Dec 2015 07:58:59 +0000 (+0100) Subject: Merge pull request #2102 from ccryx/next X-Git-Tag: 4.12~87 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af49a8cd0d1319f1ca1486f3fe9ee8cd16613e15;hp=33f017daa9f6c48e0d9c5bcb6135b47a0b32bf76;p=i3%2Fi3 Merge pull request #2102 from ccryx/next Add support for _NET_WM_WINDOW_TYPE_NOTIFICATION --- diff --git a/src/bindings.c b/src/bindings.c index 16235a1e..3463f831 100644 --- a/src/bindings.c +++ b/src/bindings.c @@ -643,8 +643,8 @@ void binding_free(Binding *bind) { /* * Runs the given binding and handles parse errors. If con is passed, it will * execute the command binding with that container selected by criteria. - * Returns a CommandResult for running the binding's command. Caller should - * render tree if needs_tree_render is true. Free with command_result_free(). + * Returns a CommandResult for running the binding's command. Free with + * command_result_free(). * */ CommandResult *run_binding(Binding *bind, Con *con) { diff --git a/src/click.c b/src/click.c index 66a271c2..a670120f 100644 --- a/src/click.c +++ b/src/click.c @@ -198,11 +198,7 @@ static int route_click(Con *con, xcb_button_press_event_t *event, const bool mod xcb_allow_events(conn, XCB_ALLOW_ASYNC_POINTER, event->time); xcb_flush(conn); - if (result->needs_tree_render) - tree_render(); - command_result_free(result); - return 0; } } @@ -370,10 +366,6 @@ int handle_button_press(xcb_button_press_event_t *event) { Binding *bind = get_binding_from_xcb_event((xcb_generic_event_t *)event); if (bind != NULL && bind->whole_window) { CommandResult *result = run_binding(bind, NULL); - if (result->needs_tree_render) { - tree_render(); - } - command_result_free(result); } } diff --git a/src/key_press.c b/src/key_press.c index aa6d8150..6760e35b 100644 --- a/src/key_press.c +++ b/src/key_press.c @@ -31,9 +31,5 @@ void handle_key_press(xcb_key_press_event_t *event) { return; CommandResult *result = run_binding(bind, NULL); - - if (result->needs_tree_render) - tree_render(); - command_result_free(result); }