mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xwayland: Expand tab characters
Over time, some sneaky tab characters have found their way in the Xwayland code, even though they were not allowed: https://www.x.org/wiki/CodingStyle/ Simply expand the tabs to get rid of these... Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2121>
This commit is contained in:
@@ -1720,7 +1720,7 @@ xwl_glamor_gbm_init_egl(struct xwl_screen *xwl_screen)
|
||||
|
||||
if (!xwl_gbm->fd_render_node && !xwl_gbm->drm_authenticated) {
|
||||
ErrorF("Failed to get wl_drm, disabling Glamor and DRI3\n");
|
||||
return FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
xwl_gbm->gbm = gbm_create_device(xwl_gbm->drm_fd);
|
||||
|
||||
@@ -754,7 +754,7 @@ apply_output_change(struct xwl_output *xwl_output)
|
||||
/* we did not check this output for new screen size, do it now */
|
||||
output_get_new_size(xwl_output, &logical_width, &logical_height);
|
||||
|
||||
--xwl_screen->expecting_event;
|
||||
--xwl_screen->expecting_event;
|
||||
}
|
||||
|
||||
if (xwl_screen->fixed_output == NULL)
|
||||
|
||||
@@ -68,14 +68,14 @@ mode_refresh(const xRRModeInfo *mode_info)
|
||||
double vTotal = mode_info->vTotal;
|
||||
|
||||
if (mode_info->modeFlags & RR_DoubleScan)
|
||||
vTotal *= 2.0;
|
||||
vTotal *= 2.0;
|
||||
|
||||
if (mode_info->modeFlags & RR_Interlace)
|
||||
vTotal /= 2.0;
|
||||
vTotal /= 2.0;
|
||||
|
||||
if (mode_info->hTotal > 0.0 && vTotal > 0.0)
|
||||
rate = ((double) mode_info->dotClock /
|
||||
((double) mode_info->hTotal * (double) vTotal));
|
||||
rate = ((double) mode_info->dotClock /
|
||||
((double) mode_info->hTotal * (double) vTotal));
|
||||
else
|
||||
rate = 0.0;
|
||||
|
||||
|
||||
@@ -973,11 +973,11 @@ xwl_window_update_libdecor_size(struct xwl_window *xwl_window,
|
||||
double scale;
|
||||
|
||||
if (xwl_window->libdecor_frame) {
|
||||
scale = xwl_window_get_fractional_scale_factor(xwl_window);
|
||||
state = libdecor_state_new(round((double) width / scale),
|
||||
round((double) height / scale));
|
||||
libdecor_frame_commit(xwl_window->libdecor_frame, state, configuration);
|
||||
libdecor_state_free(state);
|
||||
scale = xwl_window_get_fractional_scale_factor(xwl_window);
|
||||
state = libdecor_state_new(round((double) width / scale),
|
||||
round((double) height / scale));
|
||||
libdecor_frame_commit(xwl_window->libdecor_frame, state, configuration);
|
||||
libdecor_state_free(state);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user