Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wlr_gamma_control_unstable_v1 support #131

Merged
merged 1 commit into from
Jan 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/api/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ extern "C"
struct wlr_data_device_manager;
struct wlr_linux_dmabuf_v1;
struct wlr_gamma_control_manager;
struct wlr_gamma_control_manager_v1;
struct wlr_screenshooter;
struct wlr_xdg_output_manager_v1;
struct wlr_export_dmabuf_manager_v1;
Expand Down Expand Up @@ -89,6 +90,7 @@ class wayfire_core : public wf_object_base
{
wlr_data_device_manager *data_device;
wlr_gamma_control_manager *gamma;
wlr_gamma_control_manager_v1 *gamma_v1;
wlr_screenshooter *screenshooter;
wlr_screencopy_manager_v1 *screencopy;
wlr_linux_dmabuf_v1 *linux_dmabuf;
Expand Down
2 changes: 2 additions & 0 deletions src/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ extern "C"
#include <wlr/types/wlr_export_dmabuf_v1.h>
#include <wlr/types/wlr_server_decoration.h>
#include <wlr/types/wlr_gamma_control.h>
#include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_xdg_output_v1.h>
#include <wlr/types/wlr_screencopy_v1.h>
}
Expand Down Expand Up @@ -142,6 +143,7 @@ void wayfire_core::init(wayfire_config *conf)
protocols.screenshooter = wlr_screenshooter_create(display);
protocols.screencopy = wlr_screencopy_manager_v1_create(display);
protocols.gamma = wlr_gamma_control_manager_create(display);
protocols.gamma_v1 = wlr_gamma_control_manager_v1_create(display);
protocols.linux_dmabuf = wlr_linux_dmabuf_v1_create(display, renderer);
protocols.export_dmabuf = wlr_export_dmabuf_manager_v1_create(display);

Expand Down