summaryrefslogtreecommitdiff
path: root/schewm.c
diff options
context:
space:
mode:
Diffstat (limited to 'schewm.c')
-rw-r--r--schewm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/schewm.c b/schewm.c
index bcbcb62..82392a2 100644
--- a/schewm.c
+++ b/schewm.c
@@ -2475,7 +2475,7 @@ enum TileType {
TILE_BOTTOM_RIGHT,
};
-void
+static void
wm_toggle_tile(enum TileType tile_type) {
if (wm.focus == NULL) {
return;
@@ -2485,7 +2485,8 @@ wm_toggle_tile(enum TileType tile_type) {
if (wm.focus->has_old_size) {
client_restore_size(wm.focus);
dpy_update_window_geometry(wm.focus);
- } else {
+ dpy_draw_focused_borders(wm.focus);
+ } else {
struct Rect rect;
// Start with monitor size, then reduce to appropriate target size
wm_client_monitor_size(wm.focus, true, &rect);