WIP: fix way vrr

This commit is contained in:
Leonardo Eugênio 2022-12-04 01:23:46 -03:00
parent d1a843b71c
commit d93da9db68
3 changed files with 37 additions and 1 deletions

View file

View file

@ -0,0 +1,24 @@
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 43de54e5..307a24ff 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -769,6 +769,7 @@ struct wlr_output_mode *wlr_drm_connector_add_mode(struct wlr_output *output,
static bool drm_connector_set_cursor(struct wlr_output *output,
struct wlr_buffer *buffer, int hotspot_x, int hotspot_y) {
+ wlr_log(WLR_DEBUG, "drm_connector_set_cursor");
struct wlr_drm_connector *conn = get_drm_connector_from_output(output);
struct wlr_drm_backend *drm = conn->backend;
struct wlr_drm_crtc *crtc = conn->crtc;
@@ -843,6 +844,11 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
static bool drm_connector_move_cursor(struct wlr_output *output,
int x, int y) {
+
+ wlr_log(WLR_DEBUG, "drm_connector_move_cursor");
+
+ return true;
+
struct wlr_drm_connector *conn = get_drm_connector_from_output(output);
if (!conn->crtc) {
return false;

View file

@ -40,6 +40,19 @@ in {
forEachMerge = list: func: mergeAttrsSet (lib.forEach list func); forEachMerge = list: func: mergeAttrsSet (lib.forEach list func);
in { in {
enable = true; enable = true;
package = pkgs.sway.override {
sway-unwrapped = ((pkgs.sway-unwrapped.overrideAttrs (old: {
patches = old.patches ++ [
../patches/sway/fix-vrr.patch
];
})).override {
wlroots = pkgs.wlroots.overrideAttrs (_: {
patches = [
../patches/wlroots/fix-vrr.patch
];
});
});
};
config = { config = {
bars = [ ]; bars = [ ];
window.titlebar = false; window.titlebar = false;
@ -412,7 +425,6 @@ in {
# layer=overlay # layer=overlay
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
sway
swaybg swaybg
swaylock swaylock