Skip to content

Commit

Permalink
Merge pull request #692 from luboslenco/master
Browse files Browse the repository at this point in the history
[Linux] Fix x11 support
  • Loading branch information
RobDangerous authored Mar 4, 2022
2 parents e52749b + f9310d3 commit 6816975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backends/System/Linux/Sources/kinc/backend/x11/display.c.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ kinc_display_mode_t kinc_x11_display_current_mode(int display_index) {
Window root_window = DefaultRootWindow(x11_ctx.display);
XRRScreenResources *screen_resources = xlib.XRRGetScreenResourcesCurrent(x11_ctx.display, root_window);

XRROutputInfo *output_info = xlib.XRRGetOutputInfo(x11_ctx.display, screen_resources, display->output);
XRROutputInfo *output_info = xlib.XRRGetOutputInfo(x11_ctx.display, screen_resources, screen_resources->outputs[display_index]);
if (output_info->connection != RR_Connected || output_info->crtc == None) {
kinc_log(KINC_LOG_LEVEL_ERROR, "Display %i not connected.", display_index);
xlib.XRRFreeOutputInfo(output_info);
Expand Down Expand Up @@ -223,4 +223,4 @@ kinc_display_mode_t kinc_x11_display_available_mode(int display_index, int mode_
xlib.XRRFreeOutputInfo(output_info);
xlib.XRRFreeScreenResources(screen_resources);
return mode;
}
}

0 comments on commit 6816975

Please sign in to comment.