Reverted a change that caused wl-clipboard to hang

I suppose this hack can be done in another way if it's actually still a problem.
This commit is contained in:
Keith Bowes 2023-12-07 13:18:35 -05:00
parent ae42d9d2f7
commit ead6648438
2 changed files with 5 additions and 10 deletions

View file

@ -116,14 +116,9 @@ static void xdg_toplevel_map(struct wl_listener *listener, void *data) {
toplevel->geometry.y = 0;
}
/* A toplevel no larger than a title bar shouldn't be sized or focused */
if (toplevel->geometry.height > TITLEBAR_HEIGHT &&
toplevel->geometry.height > TITLEBAR_HEIGHT *
(usable_area.width / usable_area.height)) {
wlr_xdg_toplevel_set_size(toplevel->xdg_toplevel,
toplevel->geometry.width, toplevel->geometry.height);
focus_toplevel(toplevel, toplevel->xdg_toplevel->base->surface);
}
wlr_xdg_toplevel_set_size(toplevel->xdg_toplevel,
toplevel->geometry.width, toplevel->geometry.height);
focus_toplevel(toplevel, toplevel->xdg_toplevel->base->surface);
wlr_scene_node_set_position(&toplevel->scene_tree->node,
toplevel->geometry.x, toplevel->geometry.y);