Skip to content

Commit

Permalink
attempted fix for issue #75
Browse files Browse the repository at this point in the history
  • Loading branch information
bbidulock committed May 3, 2016
1 parent 79c6633 commit 2b0df4d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/wmstatus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,13 @@ void MoveSizeStatus::setStatus(YFrameWindow *frame, const YRect &r) {

fX = r.x();
fY = r.y();
fW = (width - (sh ? sh->base_width : 0)) / (sh ? sh->width_inc : 1);
fH = (height - (sh ? sh->base_height : 0)) / (sh ? sh->height_inc : 1);
if (sh && (sh->flags & PResizeInc)) {
fW = (width - sh->base_width) / (sh->width_inc ?: 1);
fH = (height - sh->base_height) / (sh->height_inc ?: 1);
} else {
fW = width;
fH = height;
}
repaintSync();
}

Expand All @@ -126,8 +131,13 @@ void MoveSizeStatus::setStatus(YFrameWindow *frame) {

fX = frame->x ();//// + frame->borderX ();
fY = frame->y ();//// + frame->borderY () + frame->titleY ();
fW = (frame->client()->width() - (sh ? sh->base_width : 0)) / (sh ? sh->width_inc : 1);
fH = (frame->client()->height() - (sh ? sh->base_height : 0)) / (sh ? sh->height_inc : 1);
if (sh && (sh->flags & PResizeInc)) {
fW = (frame->client()->width() - sh->base_width) / (sh->width_inc ?: 1);
fH = (frame->client()->height() - sh->base_height) / (sh->height_inc ?: 1);
} else {
fW = frame->client()->width();
fH = frame->client()->height();
}
repaintSync();
}

Expand Down

0 comments on commit 2b0df4d

Please sign in to comment.