Skip to content

Commit

Permalink
Merge pull request #131 from myfreeweb/gamma
Browse files Browse the repository at this point in the history
Add wlr_gamma_control_unstable_v1 support
  • Loading branch information
ammen99 authored Jan 20, 2019
2 parents b1dade6 + 267a96c commit fbda11e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit fbda11e

Please sign in to comment.