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>
(cherry picked from commit 904cdb0d11)
This commit is contained in:
Olivier Fourdan 2026-01-12 09:48:35 +01:00 committed by Alan Coopersmith
parent f5d8e11288
commit 3df29994ec
4 changed files with 11 additions and 11 deletions

View file

@ -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);

View file

@ -751,7 +751,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)

View file

@ -67,14 +67,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;

View file

@ -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);
}
}