diff --git a/src/output.c b/src/output.c index afedcc7..06f1af5 100644 --- a/src/output.c +++ b/src/output.c @@ -24,7 +24,6 @@ const struct output output_x11 = { x_win_hide, x_display_surface, - x_win_visible, x_win_get_context, get_active_screen, @@ -45,7 +44,6 @@ const struct output output_wl = { wl_win_hide, wl_display_surface, - wl_win_visible, wl_win_get_context, wl_get_active_screen, diff --git a/src/output.h b/src/output.h index 783b0d3..a6cf5e7 100644 --- a/src/output.h +++ b/src/output.h @@ -38,7 +38,6 @@ struct output { void (*display_surface)(cairo_surface_t *srf, window win, const struct dimensions*); - bool (*win_visible)(window); cairo_t* (*win_get_context)(window); const struct screen_info* (*get_active_screen)(void); diff --git a/src/wayland/wl.c b/src/wayland/wl.c index e7e554d..3598f94 100644 --- a/src/wayland/wl.c +++ b/src/wayland/wl.c @@ -616,6 +616,8 @@ void wl_win_destroy(window winptr) { } void wl_win_show(window win) { + // This is here for compatibilty with the X11 output. The window is + // already shown in wl_display_surface. } void wl_win_hide(window win) { @@ -642,10 +644,6 @@ void wl_display_surface(cairo_surface_t *srf, window winptr, const struct dimens wl_display_roundtrip(ctx.display); } -bool wl_win_visible(window win) { - return true; -} - cairo_t* wl_win_get_context(window winptr) { struct window_wl *win = (struct window_wl*)winptr; ctx.current_buffer = get_next_buffer(ctx.shm, ctx.buffers, 500, 500); diff --git a/src/wayland/wl.h b/src/wayland/wl.h index 915dd01..fe54e12 100644 --- a/src/wayland/wl.h +++ b/src/wayland/wl.h @@ -17,7 +17,6 @@ void wl_win_show(window); void wl_win_hide(window); void wl_display_surface(cairo_surface_t *srf, window win, const struct dimensions*); -bool wl_win_visible(window); cairo_t* wl_win_get_context(window); const struct screen_info* wl_get_active_screen(void); diff --git a/src/x11/x.c b/src/x11/x.c index 0a552f1..8cdc0ab 100644 --- a/src/x11/x.c +++ b/src/x11/x.c @@ -179,11 +179,6 @@ void x_display_surface(cairo_surface_t *srf, window winptr, const struct dimensi } -bool x_win_visible(window winptr) -{ - return ((struct window_x11*)winptr)->visible; -} - cairo_t* x_win_get_context(window winptr) { return ((struct window_x11*)win)->c_ctx; diff --git a/src/x11/x.h b/src/x11/x.h index 123d06b..28fb32c 100644 --- a/src/x11/x.h +++ b/src/x11/x.h @@ -42,7 +42,6 @@ void x_win_hide(window); void x_display_surface(cairo_surface_t *srf, window, const struct dimensions *dim); -bool x_win_visible(window); cairo_t* x_win_get_context(window); /* X misc */