Wrap the glfw is fullscreen API
This commit is contained in:
parent
9be37f7d2d
commit
60e91b018a
10
kitty/glfw.c
10
kitty/glfw.c
@ -599,6 +599,16 @@ toggle_fullscreen_for_os_window(OSWindow *w) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
is_os_window_fullscreen(OSWindow *w) {
|
||||||
|
unsigned int flags = 0;
|
||||||
|
#ifdef __APPLE__
|
||||||
|
if (!OPT(macos_traditional_fullscreen)) flags = 1;
|
||||||
|
#endif
|
||||||
|
if (w && w->handle) return glfwIsFullscreen(w->handle, flags);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
toggle_maximized_for_os_window(OSWindow *w) {
|
toggle_maximized_for_os_window(OSWindow *w) {
|
||||||
bool maximized = false;
|
bool maximized = false;
|
||||||
|
|||||||
@ -321,3 +321,4 @@ void send_pending_click_to_window(Window*, void*);
|
|||||||
void get_platform_dependent_config_values(void *glfw_window);
|
void get_platform_dependent_config_values(void *glfw_window);
|
||||||
bool draw_window_title(OSWindow *window, const char *text, color_type fg, color_type bg, uint8_t *output_buf, size_t width, size_t height);
|
bool draw_window_title(OSWindow *window, const char *text, color_type fg, color_type bg, uint8_t *output_buf, size_t width, size_t height);
|
||||||
uint8_t* draw_single_ascii_char(const char ch, size_t *result_width, size_t *result_height);
|
uint8_t* draw_single_ascii_char(const char ch, size_t *result_width, size_t *result_height);
|
||||||
|
bool is_os_window_fullscreen(OSWindow *);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user