mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 22:55:58 +01:00
Merge pull request #564 from agx/master
Don't crash if crtc->cursor is NULL
This commit is contained in:
commit
38887a09dc
1 changed files with 4 additions and 0 deletions
|
@ -167,6 +167,10 @@ bool legacy_crtc_move_cursor(struct wlr_drm_backend *drm,
|
||||||
|
|
||||||
static bool atomic_crtc_move_cursor(struct wlr_drm_backend *drm,
|
static bool atomic_crtc_move_cursor(struct wlr_drm_backend *drm,
|
||||||
struct wlr_drm_crtc *crtc, int x, int y) {
|
struct wlr_drm_crtc *crtc, int x, int y) {
|
||||||
|
if (!crtc || !crtc->cursor) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
struct wlr_drm_plane *plane = crtc->cursor;
|
struct wlr_drm_plane *plane = crtc->cursor;
|
||||||
// We can't use atomic operations on fake planes
|
// We can't use atomic operations on fake planes
|
||||||
if (plane->id == 0) {
|
if (plane->id == 0) {
|
||||||
|
|
Loading…
Reference in a new issue