From 3df29994ec2481735eff6b669aef571d33f1c8a9 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Mon, 12 Jan 2026 09:48:35 +0100 Subject: [PATCH] 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 Part-of: (cherry picked from commit 904cdb0d115ed2751149157e9d37e4667f055a7b) --- hw/xwayland/xwayland-glamor-gbm.c | 2 +- hw/xwayland/xwayland-output.c | 2 +- hw/xwayland/xwayland-vidmode.c | 8 ++++---- hw/xwayland/xwayland-window.c | 10 +++++----- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c index 05668b8e9..f7f78560c 100644 --- a/hw/xwayland/xwayland-glamor-gbm.c +++ b/hw/xwayland/xwayland-glamor-gbm.c @@ -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); diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c index d377a0018..970fd289f 100644 --- a/hw/xwayland/xwayland-output.c +++ b/hw/xwayland/xwayland-output.c @@ -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) diff --git a/hw/xwayland/xwayland-vidmode.c b/hw/xwayland/xwayland-vidmode.c index b60528d8a..973ae1e93 100644 --- a/hw/xwayland/xwayland-vidmode.c +++ b/hw/xwayland/xwayland-vidmode.c @@ -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; diff --git a/hw/xwayland/xwayland-window.c b/hw/xwayland/xwayland-window.c index 7d6599089..e37bb4c51 100644 --- a/hw/xwayland/xwayland-window.c +++ b/hw/xwayland/xwayland-window.c @@ -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); } }