mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Fixed a few bugs
This commit is contained in:
parent
557bb4ae05
commit
62dd0a5c8b
2 changed files with 3 additions and 2 deletions
|
|
@ -53,6 +53,7 @@ static void arrange_surface(struct wb_output *output, struct wlr_box *full_area,
|
|||
|
||||
if (desc->type == WB_SCENE_DESC_LAYER_SHELL) {
|
||||
struct wb_layer_surface *surface = desc->data;
|
||||
surface->scene->layer_surface->initialized = true;
|
||||
wlr_scene_layer_surface_v1_configure(surface->scene,
|
||||
full_area, usable_area);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ static bool handle_keybinding(struct wb_server *server, xkb_keysym_t sym, uint32
|
|||
}
|
||||
if (key_binding->action & ACTION_UNSHADE) {
|
||||
struct wb_toplevel *toplevel = wl_container_of(server->toplevels.next, toplevel, link);
|
||||
if (toplevel->scene_tree->node.enabled) {
|
||||
if (toplevel->previous_geometry.height > 0 && toplevel->previous_geometry.width > 0 && toplevel->scene_tree->node.enabled) {
|
||||
wlr_xdg_toplevel_set_size(toplevel->xdg_toplevel,
|
||||
toplevel->previous_geometry.width, toplevel->previous_geometry.height);
|
||||
}
|
||||
|
|
@ -423,7 +423,7 @@ void seat_set_focus_layer(struct wb_seat *seat, struct wlr_layer_surface_v1 *lay
|
|||
return;
|
||||
}
|
||||
seat_focus_surface(seat, layer->surface);
|
||||
if (layer->current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP) {
|
||||
if (layer->current.layer > ZWLR_LAYER_SHELL_V1_LAYER_TOP) {
|
||||
seat->focused_layer = layer;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue