output: remove unused win_visible function

This was used nowhere, and not even implemented for the wayland output.
This commit is contained in:
fwsmit 2021-02-24 12:52:43 +01:00
parent a8b2058fcf
commit f8a2ff48b3
6 changed files with 2 additions and 14 deletions

View File

@ -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,

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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;

View File

@ -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 */