fix xwayland border
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user