diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c index d02934cd5b9260575c523b152d3a507d3d07e679..a69188c0f847eceeb193bb9330fae3d7e3d9478b 100644 --- a/hw/xwayland/xwayland.c +++ b/hw/xwayland/xwayland.c @@ -193,8 +193,6 @@ static void xwl_window_property_allow_commits(struct xwl_window *xwl_window, PropertyStateRec *propstate) { - Bool old_allow_commits = xwl_window->allow_commits; - switch (propstate->state) { case PropertyNewValue: xwl_window_set_allow_commits_from_property(xwl_window, propstate->prop); @@ -207,17 +205,6 @@ xwl_window_property_allow_commits(struct xwl_window *xwl_window, default: break; } - - /* If allow_commits turned from off to on, discard any frame - * callback we might be waiting for so that a new buffer is posted - * immediately through block_handler() if there is damage to post. - */ - if (!old_allow_commits && xwl_window->allow_commits) { - if (xwl_window->frame_callback) { - wl_callback_destroy(xwl_window->frame_callback); - xwl_window->frame_callback = NULL; - } - } } static void