diff options
Diffstat (limited to 'rsnix')
| -rw-r--r-- | rsnix/src/wm.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rsnix/src/wm.rs b/rsnix/src/wm.rs index e5ae6ba..39ad1be 100644 --- a/rsnix/src/wm.rs +++ b/rsnix/src/wm.rs | |||
| @@ -604,9 +604,10 @@ fn move_window(id: usize, nx: usize, ny: usize) { | |||
| 604 | WINDOWS[id].x = nx; | 604 | WINDOWS[id].x = nx; |
| 605 | WINDOWS[id].y = ny; | 605 | WINDOWS[id].y = ny; |
| 606 | } | 606 | } |
| 607 | let pad = 1; | 607 | let pad: usize = 1; |
| 608 | composite_rect(ox - pad, oy - pad, w.w + 2 * pad, w.h + TITLE_BAR_H + 2 * pad); | 608 | let oh = w.h + TITLE_BAR_H; |
| 609 | composite_rect(nx - pad, ny - pad, w.w + 2 * pad, w.h + TITLE_BAR_H + 2 * pad); | 609 | composite_rect(ox.saturating_sub(pad), oy.saturating_sub(pad), w.w + 2 * pad, oh + 2 * pad); |
| 610 | composite_rect(nx.saturating_sub(pad), ny.saturating_sub(pad), w.w + 2 * pad, oh + 2 * pad); | ||
| 610 | } | 611 | } |
| 611 | 612 | ||
| 612 | pub fn owner(id: usize) -> Option<usize> { | 613 | pub fn owner(id: usize) -> Option<usize> { |
