diff options
| author | bakkeby <[email protected]> | 2020-10-16 15:26:00 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-10-18 14:27:46 +0200 |
| commit | ff78e407a5ec6d5a804f54ec6bfd71c30fc8b776 (patch) | |
| tree | 91691a83e55268e8d04d8ab3524e4e69f31f0d24 /patch | |
| parent | 6696eadf7463a9f85e78cacef063ca81accece73 (diff) | |
| download | dwm-flexipatch-ff78e407a5ec6d5a804f54ec6bfd71c30fc8b776.tar.gz dwm-flexipatch-ff78e407a5ec6d5a804f54ec6bfd71c30fc8b776.zip | |
transfer: Fix null pointer exception when no focused client
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/transfer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/transfer.c b/patch/transfer.c index f667416..0a99f31 100644 --- a/patch/transfer.c +++ b/patch/transfer.c @@ -11,7 +11,7 @@ transfer(const Arg *arg) stail = c; i++; } - if (selmon->sel->isfloating || i == 0) { + if (!selmon->sel || selmon->sel->isfloating || i == 0) { return; } else if (transfertostack) { selmon->nmaster = MIN(i, selmon->nmaster) - 1; @@ -30,4 +30,4 @@ transfer(const Arg *arg) } } arrange(selmon); -}
\ No newline at end of file +} |
