fix xwayland border

This commit is contained in:
2026-05-04 12:40:06 +07:00
parent ba803af701
commit 385ff13e7b
5 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ focus_toplevel(struct absinthe_toplevel *toplevel)
struct wlr_xwayland_surface *prev_xwayland_surface =
wlr_xwayland_surface_try_from_wlr_surface(prev_surface);
if (prev_xwayland_surface)
toplevel_set_border_color(prev_surface->data,
toplevel_set_border_color(prev_xwayland_surface->data,
unfocused_bc);
#endif
}
+1 -1
View File
@@ -31,7 +31,7 @@ handle_keybind(struct absinthe_server *server, xkb_keysym_t keysym)
break;
case XKB_KEY_Return:
if (fork() == 0)
execl("/bin/sh", "sh", "-c", "ghostty", NULL);
execl("/bin/sh", "sh", "-c", "alacritty", NULL);
break;
case XKB_KEY_r:
if (fork() == 0)
+2
View File
@@ -80,6 +80,8 @@ new_xdg_toplevel(struct wl_listener *listener, void *data)
toplevel->xdg = xdg_toplevel;
toplevel->xdg->base->data = toplevel;
wlr_surface_set_preferred_buffer_scale(toplevel->xdg->base->surface, 1);
toplevel->commit.notify = toplevel_commit;
wl_signal_add(&xdg_toplevel->base->surface->events.commit,
&toplevel->commit);