WIP: fix way vrr
This commit is contained in:
parent
d1a843b71c
commit
d93da9db68
0
patches/sway/fix-vrr.patch
Normal file
0
patches/sway/fix-vrr.patch
Normal file
24
patches/wlroots/fix-vrr.patch
Normal file
24
patches/wlroots/fix-vrr.patch
Normal 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;
|
|
@ -40,6 +40,19 @@ in {
|
|||
forEachMerge = list: func: mergeAttrsSet (lib.forEach list func);
|
||||
in {
|
||||
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 = {
|
||||
bars = [ ];
|
||||
window.titlebar = false;
|
||||
|
@ -412,7 +425,6 @@ in {
|
|||
# layer=overlay
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
sway
|
||||
swaybg
|
||||
swaylock
|
||||
|
||||
|
|
Loading…
Reference in a new issue