aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-07-18 12:05:47 +0200
committerFurkan Sahin <furkan-dev@proton.me>2021-07-18 12:05:47 +0200
commit15c486bbe5a6c7a8be7d5de58b2ca5fb8cd589a0 (patch)
treea1efb14a17b60ac278c1221ed907671a822dabfd /include
parent0afc041a7bbe6b8a4b8e14ce08beeddc510401fc (diff)
Add `output modeline` command
Only works with DRM backend.
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/config.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 29a6bec3..4be40870 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -282,6 +282,7 @@ sway_cmd output_cmd_dpms;
sway_cmd output_cmd_enable;
sway_cmd output_cmd_max_render_time;
sway_cmd output_cmd_mode;
+sway_cmd output_cmd_modeline;
sway_cmd output_cmd_position;
sway_cmd output_cmd_scale;
sway_cmd output_cmd_scale_filter;
diff --git a/include/sway/config.h b/include/sway/config.h
index d6c29fe6..52867fa6 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -8,6 +8,7 @@
#include <wlr/types/wlr_tablet_tool.h>
#include <wlr/util/box.h>
#include <xkbcommon/xkbcommon.h>
+#include <xf86drmMode.h>
#include "../include/config.h"
#include "list.h"
#include "swaynag.h"
@@ -257,6 +258,7 @@ struct output_config {
int width, height;
float refresh_rate;
int custom_mode;
+ drmModeModeInfo drm_mode;
int x, y;
float scale;
enum scale_filter_mode scale_filter;