cage: add back xdg shell handling

This commit is contained in:
Jente Hidskes 2020-07-06 23:55:44 +02:00
parent de61d06406
commit 98d1853254
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
3 changed files with 62 additions and 2 deletions

View file

@ -17,7 +17,7 @@
#include "view.h"
static bool
cage_view_extends_output_layout(struct cg_view *view, struct wlr_box *output_box)
cage_view_extends_output(struct cg_view *view, struct wlr_box *output_box)
{
assert(view->impl->get_geometry != NULL);
@ -57,7 +57,7 @@ cage_view_position(struct cg_view *view)
struct wlr_box output_box = {0};
cage_output_get_geometry(view->output, &output_box);
if (cage_view_is_primary(view) || cage_view_extends_output_layout(view, &output_box)) {
if (cage_view_is_primary(view) || cage_view_extends_output(view, &output_box)) {
cage_view_maximize(view, &output_box);
} else {
cage_view_center(view, &output_box);