mowc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/mowc
Log | Files | Refs

commit c92d33a2fcfcfe1367182ddd31addeab1df26669
parent 5c4549215bddc6c14d3b481dc4dd9840cdc348d8
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Thu,  1 Jul 2021 15:57:55 -0500

mowc: overlay displays properly now

Diffstat:
Mmowc.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/mowc.c b/mowc.c @@ -57,6 +57,7 @@ new_window(struct swc_window *window) curwindow = window; swc_window_set_geometry(window, &curscreen->usable_geometry); + swc_window_set_tiled(window); swc_window_focus(window); swc_window_set_handler(window, &window_handler, window); swc_window_show(window); @@ -111,9 +112,13 @@ overlay_handler(void *data, uint32_t time, uint32_t value, uint32_t state) if (overlay_active) { overlay_active = false; swc_window_hide(overlay); + if (curwindow) + swc_window_show(curwindow); } else { overlay_active = true; swc_window_show(overlay); + if (curwindow) + swc_window_hide(curwindow); } }