diff --git a/glfw/wl_client_side_decorations.c b/glfw/wl_client_side_decorations.c index 3fc79a19..3a0a824a 100644 --- a/glfw/wl_client_side_decorations.c +++ b/glfw/wl_client_side_decorations.c @@ -119,7 +119,7 @@ alloc_buffer_pair(_GLFWWaylandBufferPair *pair, struct wl_shm_pool *pool, uint8_ void initialize_csd_metrics(_GLFWwindow *window) { decs.metrics.width = 12; - decs.metrics.top = 36; + decs.metrics.top = 48; decs.metrics.visible_titlebar_height = window->wl.decorations.metrics.top - window->wl.decorations.metrics.width; decs.metrics.horizontal = 2 * window->wl.decorations.metrics.width; decs.metrics.vertical = window->wl.decorations.metrics.width + window->wl.decorations.metrics.top; diff --git a/kitty/glfw.c b/kitty/glfw.c index a52ae7e2..65e71ce1 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -441,9 +441,13 @@ draw_text_callback(GLFWwindow *window, const char *text, uint32_t fg, uint32_t b double xdpi, ydpi; get_window_dpi(window, &xdpi, &ydpi); unsigned px_sz = (unsigned)(global_state.callback_os_window->font_sz_in_pts * ydpi / 72.); - px_sz = MIN(px_sz, 3 * height / 4); + px_sz = MIN(px_sz, 4 * height / 3); +#if 0 + fprintf(stderr, "draw_text_callback xdpi=%g ydpi=%g font_sz_in_pts=%g px_sz=%u\n", + xdpi, ydpi, global_state.callback_os_window->font_sz_in_pts, px_sz); +#endif static char title[2048]; - snprintf(title, sizeof(title), "🐱 %s", text); + snprintf(title, sizeof(title), "😸 %s", text); bool ok = render_single_line(csd_title_render_ctx, title, px_sz, fg, bg, output_buf, width, height, x_offset, y_offset, right_margin); if (!ok && PyErr_Occurred()) PyErr_Print(); return ok;