mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-31 22:25:27 -04:00
cage: add back xdg shell handling
This commit is contained in:
parent
de61d06406
commit
98d1853254
3 changed files with 62 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue