Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ulteq committed Jan 17, 2018
1 parent 1171a50 commit 44b9784
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/winwidget.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,10 +790,10 @@ void winwidget_resize(winwidget winwid, int w, int h, int force_resize)
D((" x %d y %d w %d h %d\n", attributes.x, attributes.y, winwid->w,
winwid->h));

if ((opt.geom_flags & (WidthValue | HeightValue)) && !force_resize) {
winwid->had_resize = 1;
return;
}
if ((opt.geom_flags & (WidthValue | HeightValue)) && !force_resize) {
winwid->had_resize = 1;
return;
}
if (winwid && ((winwid->w != w) || (winwid->h != h))) {
if (opt.screen_clip) {
double required_zoom = 1.0;
Expand All @@ -804,13 +804,12 @@ void winwidget_resize(winwidget winwid, int w, int h, int force_resize)
winwid->h = winwid->im_h * required_zoom;
}
if (winwid->full_screen) {
XTranslateCoordinates(disp, winwid->win, attributes.root,
-attributes.border_width -
attributes.x,
-attributes.border_width - attributes.y, &tc_x, &tc_y, &dw);
winwid->x = tc_x;
winwid->y = tc_y;
XMoveResizeWindow(disp, winwid->win, tc_x, tc_y, winwid->w, winwid->h);
XTranslateCoordinates(disp, winwid->win, attributes.root,
-attributes.border_width - attributes.x,
-attributes.border_width - attributes.y, &tc_x, &tc_y, &dw);
winwid->x = tc_x;
winwid->y = tc_y;
XMoveResizeWindow(disp, winwid->win, tc_x, tc_y, winwid->w, winwid->h);
} else
XResizeWindow(disp, winwid->win, winwid->w, winwid->h);

Expand Down

0 comments on commit 44b9784

Please sign in to comment.