Skip to content

Commit 63a921f

Browse files
committed
Dont show window size on creation
1 parent 152c31e commit 63a921f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

kitty/child-monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ render_os_window(OSWindow *os_window, unsigned int active_window_id, color_type
765765
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;
766766
}
767767
}
768-
if (os_window->live_resize.in_progress) draw_resizing_text(os_window);
768+
if (os_window->live_resize.in_progress && (monotonic() - os_window->created_at > ms_to_monotonic_t(1000))) draw_resizing_text(os_window);
769769
swap_window_buffers(os_window);
770770
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;
771771
os_window->focused_at_last_render = os_window->is_focused;

kitty/state.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ add_os_window(void) {
204204
ans->id = ++global_state.os_window_id_counter;
205205
ans->tab_bar_render_data.vao_idx = create_cell_vao();
206206
ans->background_opacity = OPT(background_opacity);
207+
ans->created_at = monotonic();
207208

208209
bool wants_bg = OPT(background_image) && OPT(background_image)[0] != 0;
209210
if (wants_bg) {

kitty/state.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ typedef struct {
189189
typedef struct {
190190
void *handle;
191191
id_type id;
192+
monotonic_t created_at;
192193
struct {
193194
int x, y, w, h;
194195
bool is_set, was_maximized;

0 commit comments

Comments
 (0)