mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
view_center: remove cg_server
This commit is contained in:
parent
29009ddd77
commit
2c51cd62b6
1 changed files with 1 additions and 2 deletions
3
view.c
3
view.c
|
|
@ -37,8 +37,7 @@ view_maximize(struct cg_view *view)
|
|||
static void
|
||||
view_center(struct cg_view *view)
|
||||
{
|
||||
struct cg_server *server = view->server;
|
||||
struct wlr_output *output = server->output->wlr_output;
|
||||
struct wlr_output *output = view->server->output->wlr_output;
|
||||
|
||||
int output_width, output_height;
|
||||
wlr_output_effective_resolution(output, &output_width, &output_height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue