Skip to content

Commit

Permalink
fix: check for headless backend before resize
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldeoleiros committed Oct 30, 2024
1 parent e1ab267 commit 806f9da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/toplevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ void toplevel_resize(

wlr_scene_node_set_position(&toplevel->scene_tree->node,
toplevel->geometry.x, toplevel->geometry.y);
wlr_xdg_toplevel_set_size(toplevel->xdg_toplevel, toplevel->geometry.width,

if (strcmp(getenv("TURTILE_BACKEND"), "headless") != 0)
wlr_xdg_toplevel_set_size(toplevel->xdg_toplevel, toplevel->geometry.width,
toplevel->geometry.height);
}

Expand Down

0 comments on commit 806f9da

Please sign in to comment.