mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-23 05:15:58 +01:00
Merge pull request #601 from emersion/output-modeset-enabled
backend/drm: update output enabled property on modeset
This commit is contained in:
commit
86a404f2cd
1 changed files with 2 additions and 0 deletions
|
@ -207,6 +207,7 @@ static void wlr_drm_connector_swap_buffers(struct wlr_output *output) {
|
||||||
|
|
||||||
if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, NULL)) {
|
if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, NULL)) {
|
||||||
conn->pageflip_pending = true;
|
conn->pageflip_pending = true;
|
||||||
|
wlr_output_update_enabled(output, true);
|
||||||
} else {
|
} else {
|
||||||
wl_event_source_timer_update(conn->retry_pageflip,
|
wl_event_source_timer_update(conn->retry_pageflip,
|
||||||
1000.0f / conn->output.current_mode->refresh);
|
1000.0f / conn->output.current_mode->refresh);
|
||||||
|
@ -245,6 +246,7 @@ void wlr_drm_connector_start_renderer(struct wlr_drm_connector *conn) {
|
||||||
struct wlr_drm_mode *mode = (struct wlr_drm_mode *)conn->output.current_mode;
|
struct wlr_drm_mode *mode = (struct wlr_drm_mode *)conn->output.current_mode;
|
||||||
if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, &mode->drm_mode)) {
|
if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, &mode->drm_mode)) {
|
||||||
conn->pageflip_pending = true;
|
conn->pageflip_pending = true;
|
||||||
|
wlr_output_update_enabled(&conn->output, true);
|
||||||
} else {
|
} else {
|
||||||
wl_event_source_timer_update(conn->retry_pageflip,
|
wl_event_source_timer_update(conn->retry_pageflip,
|
||||||
1000.0f / conn->output.current_mode->refresh);
|
1000.0f / conn->output.current_mode->refresh);
|
||||||
|
|
Loading…
Reference in a new issue