mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Wire up output frame loop
This commit is contained in:
parent
7eafcc75f6
commit
1efd5f819f
10 changed files with 75 additions and 13 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#define _POSIX_C_SOURCE 200809L
|
||||
#include <json-c/json.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
|
@ -5,6 +6,7 @@
|
|||
#include <libinput.h>
|
||||
#include <wlr/types/wlr_box.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include "sway/output.h"
|
||||
#include "sway/container.h"
|
||||
#include "sway/input.h"
|
||||
#include "sway/ipc-json.h"
|
||||
|
|
@ -18,7 +20,7 @@ static json_object *ipc_json_create_rect(swayc_t *c) {
|
|||
|
||||
struct wlr_box box;
|
||||
if (c->type == C_OUTPUT) {
|
||||
wlr_output_effective_resolution(c->_handle.output,
|
||||
wlr_output_effective_resolution(c->_handle.output->wlr_output,
|
||||
&box.width, &box.height);
|
||||
} else {
|
||||
box.width = c->width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue