opt: disable some action in overview

This commit is contained in:
DreamMaoMao 2025-09-22 15:43:25 +08:00
parent 7a951f746e
commit 849b480a5b
2 changed files with 15 additions and 0 deletions

View file

@ -399,6 +399,10 @@ void resizewin(const Arg *arg) {
void restore_minimized(const Arg *arg) {
Client *c;
if (selmon && selmon->isoverview)
return;
if (selmon && selmon->sel && selmon->sel->is_in_scratchpad &&
selmon->sel->is_scratchpad_show) {
selmon->sel->isminied = 0;
@ -1038,6 +1042,10 @@ void toggle_scratchpad(const Arg *arg) {
Client *c;
bool hit = false;
Client *tmp = NULL;
if (selmon && selmon->isoverview)
return;
wl_list_for_each_safe(c, tmp, &clients, link) {
if (c->mon != selmon) {
continue;
@ -1066,6 +1074,9 @@ void togglefakefullscreen(const Arg *arg) {
void togglefloating(const Arg *arg) {
Client *sel = focustop(selmon);
if (selmon && selmon->isoverview)
return;
if (!sel)
return;