aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-20 20:53:13 +0100
committeremersion <contact@emersion.fr>2017-11-20 20:53:13 +0100
commit54f1135c057e76b1c05058592a6878a07a524b99 (patch)
tree2afd63b18c2e7cdf073dfcece8e1f2812c3bff90 /rootston
parentbc68f269605ddd681b3ab968bdf80a72f3618982 (diff)
Fix fullscreen in xdg-shell
Diffstat (limited to 'rootston')
-rw-r--r--rootston/output.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 82618b06..52db62f1 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -13,10 +13,6 @@
#include "rootston/desktop.h"
#include "rootston/config.h"
-static inline int64_t timespec_to_msec(const struct timespec *a) {
- return (int64_t)a->tv_sec * 1000 + a->tv_nsec / 1000000;
-}
-
/**
* Rotate a child's position relative to a parent. The parent size is (pw, ph),
* the child position is (*sx, *sy) and its size is (sw, sh).
@@ -75,12 +71,7 @@ static void render_surface(struct wlr_surface *surface,
wlr_render_with_matrix(desktop->server->renderer, surface->texture,
&matrix);
- struct wlr_frame_callback *cb, *cnext;
- wl_list_for_each_safe(cb, cnext,
- &surface->current->frame_callback_list, link) {
- wl_callback_send_done(cb->resource, timespec_to_msec(when));
- wl_resource_destroy(cb->resource);
- }
+ wlr_surface_send_frame_done(surface, when);
}
struct wlr_subsurface *subsurface;
@@ -176,7 +167,6 @@ static void render_view(struct roots_view *view, struct roots_desktop *desktop,
static bool has_standalone_surface(struct roots_view *view) {
if (!wl_list_empty(&view->wlr_surface->subsurface_list)) {
- wlr_log(L_DEBUG, "has subsurfaces");
return false;
}