aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2026-10-02 18:00:46 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2026-10-02 18:11:36 +0000
commit19a9ceaaf063080d78522e3c22cab57a87c440a5 (patch)
tree7339ce76d967fd5fd5907db9ee3099bec53ac0d2
parentb0df0618bfa9a5515ace8d0a19e197afb04c81df (diff)
x11-drivers/xlibre-xf86-video-qxl: Fix crashing issue with sddm and xlibre
- Bump PORTREVISION Reported by: Dobri Dobrev <ddobrev85 __at__ gmail.com> (cherry picked from commit d8a1a9263a82dff1f13fdb05a9b756b266fe6416)
-rw-r--r--x11-drivers/xlibre-xf86-video-qxl/Makefile2
-rw-r--r--x11-drivers/xlibre-xf86-video-qxl/files/patch-src_qxl__ums__mode.c12
2 files changed, 13 insertions, 1 deletions
diff --git a/x11-drivers/xlibre-xf86-video-qxl/Makefile b/x11-drivers/xlibre-xf86-video-qxl/Makefile
index 46b1b2b6a875..39de6a071b2e 100644
--- a/x11-drivers/xlibre-xf86-video-qxl/Makefile
+++ b/x11-drivers/xlibre-xf86-video-qxl/Makefile
@@ -1,6 +1,6 @@
PORTNAME= xlibre-xf86-video-qxl
DISTVERSION= 25.0.0
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= x11-drivers
MAINTAINER= xlibre@FreeBSD.org
diff --git a/x11-drivers/xlibre-xf86-video-qxl/files/patch-src_qxl__ums__mode.c b/x11-drivers/xlibre-xf86-video-qxl/files/patch-src_qxl__ums__mode.c
new file mode 100644
index 000000000000..ce1dc1bb9954
--- /dev/null
+++ b/x11-drivers/xlibre-xf86-video-qxl/files/patch-src_qxl__ums__mode.c
@@ -0,0 +1,12 @@
+--- src/qxl_ums_mode.c.orig 2026-10-02 17:50:27 UTC
++++ src/qxl_ums_mode.c
+@@ -63,7 +63,8 @@ qxl_add_mode (qxl_screen_t *qxl, ScrnInfoPtr pScrn, in
+ DisplayModePtr mode;
+
+ mode = screen_create_mode (pScrn, width, height, type);
+- pScrn->modes = qxl->x_modes = xf86ModesAdd (qxl->x_modes, mode);
++ qxl->x_modes = xf86ModesAdd (qxl->x_modes, mode);
++ pScrn->modes = xf86ModesAdd (pScrn->modes, xf86DuplicateMode (mode));
+
+ return mode;
+ }