mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 08:18:08 +02:00
Dont show window size on creation
This commit is contained in:
@@ -765,7 +765,7 @@ render_os_window(OSWindow *os_window, unsigned int active_window_id, color_type
|
|||||||
w->cursor_visible_at_last_render = WD.screen->cursor_render_info.is_visible; w->last_cursor_x = WD.screen->cursor_render_info.x; w->last_cursor_y = WD.screen->cursor_render_info.y; w->last_cursor_shape = WD.screen->cursor_render_info.shape;
|
w->cursor_visible_at_last_render = WD.screen->cursor_render_info.is_visible; w->last_cursor_x = WD.screen->cursor_render_info.x; w->last_cursor_y = WD.screen->cursor_render_info.y; w->last_cursor_shape = WD.screen->cursor_render_info.shape;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (os_window->live_resize.in_progress) draw_resizing_text(os_window);
|
if (os_window->live_resize.in_progress && (monotonic() - os_window->created_at > ms_to_monotonic_t(1000))) draw_resizing_text(os_window);
|
||||||
swap_window_buffers(os_window);
|
swap_window_buffers(os_window);
|
||||||
os_window->last_active_tab = os_window->active_tab; os_window->last_num_tabs = os_window->num_tabs; os_window->last_active_window_id = active_window_id;
|
os_window->last_active_tab = os_window->active_tab; os_window->last_num_tabs = os_window->num_tabs; os_window->last_active_window_id = active_window_id;
|
||||||
os_window->focused_at_last_render = os_window->is_focused;
|
os_window->focused_at_last_render = os_window->is_focused;
|
||||||
|
|||||||
@@ -204,6 +204,7 @@ add_os_window(void) {
|
|||||||
ans->id = ++global_state.os_window_id_counter;
|
ans->id = ++global_state.os_window_id_counter;
|
||||||
ans->tab_bar_render_data.vao_idx = create_cell_vao();
|
ans->tab_bar_render_data.vao_idx = create_cell_vao();
|
||||||
ans->background_opacity = OPT(background_opacity);
|
ans->background_opacity = OPT(background_opacity);
|
||||||
|
ans->created_at = monotonic();
|
||||||
|
|
||||||
bool wants_bg = OPT(background_image) && OPT(background_image)[0] != 0;
|
bool wants_bg = OPT(background_image) && OPT(background_image)[0] != 0;
|
||||||
if (wants_bg) {
|
if (wants_bg) {
|
||||||
|
|||||||
@@ -189,6 +189,7 @@ typedef struct {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
void *handle;
|
void *handle;
|
||||||
id_type id;
|
id_type id;
|
||||||
|
monotonic_t created_at;
|
||||||
struct {
|
struct {
|
||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
bool is_set, was_maximized;
|
bool is_set, was_maximized;
|
||||||
|
|||||||
Reference in New Issue
Block a user