output: remove unused win_visible function
This was used nowhere, and not even implemented for the wayland output.
This commit is contained in:
parent
a8b2058fcf
commit
f8a2ff48b3
@ -24,7 +24,6 @@ const struct output output_x11 = {
|
|||||||
x_win_hide,
|
x_win_hide,
|
||||||
|
|
||||||
x_display_surface,
|
x_display_surface,
|
||||||
x_win_visible,
|
|
||||||
x_win_get_context,
|
x_win_get_context,
|
||||||
|
|
||||||
get_active_screen,
|
get_active_screen,
|
||||||
@ -45,7 +44,6 @@ const struct output output_wl = {
|
|||||||
wl_win_hide,
|
wl_win_hide,
|
||||||
|
|
||||||
wl_display_surface,
|
wl_display_surface,
|
||||||
wl_win_visible,
|
|
||||||
wl_win_get_context,
|
wl_win_get_context,
|
||||||
|
|
||||||
wl_get_active_screen,
|
wl_get_active_screen,
|
||||||
|
@ -38,7 +38,6 @@ struct output {
|
|||||||
|
|
||||||
void (*display_surface)(cairo_surface_t *srf, window win, const struct dimensions*);
|
void (*display_surface)(cairo_surface_t *srf, window win, const struct dimensions*);
|
||||||
|
|
||||||
bool (*win_visible)(window);
|
|
||||||
cairo_t* (*win_get_context)(window);
|
cairo_t* (*win_get_context)(window);
|
||||||
|
|
||||||
const struct screen_info* (*get_active_screen)(void);
|
const struct screen_info* (*get_active_screen)(void);
|
||||||
|
@ -616,6 +616,8 @@ void wl_win_destroy(window winptr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wl_win_show(window win) {
|
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) {
|
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);
|
wl_display_roundtrip(ctx.display);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wl_win_visible(window win) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
cairo_t* wl_win_get_context(window winptr) {
|
cairo_t* wl_win_get_context(window winptr) {
|
||||||
struct window_wl *win = (struct window_wl*)winptr;
|
struct window_wl *win = (struct window_wl*)winptr;
|
||||||
ctx.current_buffer = get_next_buffer(ctx.shm, ctx.buffers, 500, 500);
|
ctx.current_buffer = get_next_buffer(ctx.shm, ctx.buffers, 500, 500);
|
||||||
|
@ -17,7 +17,6 @@ void wl_win_show(window);
|
|||||||
void wl_win_hide(window);
|
void wl_win_hide(window);
|
||||||
|
|
||||||
void wl_display_surface(cairo_surface_t *srf, window win, const struct dimensions*);
|
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);
|
cairo_t* wl_win_get_context(window);
|
||||||
|
|
||||||
const struct screen_info* wl_get_active_screen(void);
|
const struct screen_info* wl_get_active_screen(void);
|
||||||
|
@ -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)
|
cairo_t* x_win_get_context(window winptr)
|
||||||
{
|
{
|
||||||
return ((struct window_x11*)win)->c_ctx;
|
return ((struct window_x11*)win)->c_ctx;
|
||||||
|
@ -42,7 +42,6 @@ void x_win_hide(window);
|
|||||||
|
|
||||||
void x_display_surface(cairo_surface_t *srf, window, const struct dimensions *dim);
|
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);
|
cairo_t* x_win_get_context(window);
|
||||||
|
|
||||||
/* X misc */
|
/* X misc */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user