opt: disable some action in overview
This commit is contained in:
@@ -399,6 +399,10 @@ void resizewin(const Arg *arg) {
|
|||||||
|
|
||||||
void restore_minimized(const Arg *arg) {
|
void restore_minimized(const Arg *arg) {
|
||||||
Client *c;
|
Client *c;
|
||||||
|
|
||||||
|
if (selmon && selmon->isoverview)
|
||||||
|
return;
|
||||||
|
|
||||||
if (selmon && selmon->sel && selmon->sel->is_in_scratchpad &&
|
if (selmon && selmon->sel && selmon->sel->is_in_scratchpad &&
|
||||||
selmon->sel->is_scratchpad_show) {
|
selmon->sel->is_scratchpad_show) {
|
||||||
selmon->sel->isminied = 0;
|
selmon->sel->isminied = 0;
|
||||||
@@ -1036,6 +1040,10 @@ void toggle_scratchpad(const Arg *arg) {
|
|||||||
Client *c;
|
Client *c;
|
||||||
bool hit = false;
|
bool hit = false;
|
||||||
Client *tmp = NULL;
|
Client *tmp = NULL;
|
||||||
|
|
||||||
|
if (selmon && selmon->isoverview)
|
||||||
|
return;
|
||||||
|
|
||||||
wl_list_for_each_safe(c, tmp, &clients, link) {
|
wl_list_for_each_safe(c, tmp, &clients, link) {
|
||||||
if (c->mon != selmon) {
|
if (c->mon != selmon) {
|
||||||
continue;
|
continue;
|
||||||
@@ -1064,6 +1072,9 @@ void togglefakefullscreen(const Arg *arg) {
|
|||||||
void togglefloating(const Arg *arg) {
|
void togglefloating(const Arg *arg) {
|
||||||
Client *sel = focustop(selmon);
|
Client *sel = focustop(selmon);
|
||||||
|
|
||||||
|
if (selmon && selmon->isoverview)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!sel)
|
if (!sel)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@@ -893,6 +893,10 @@ void clear_fullscreen_flag(Client *c) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void minimized(const Arg *arg) {
|
void minimized(const Arg *arg) {
|
||||||
|
|
||||||
|
if (selmon && selmon->isoverview)
|
||||||
|
return;
|
||||||
|
|
||||||
if (selmon->sel && !selmon->sel->isminied) {
|
if (selmon->sel && !selmon->sel->isminied) {
|
||||||
set_minimized(selmon->sel);
|
set_minimized(selmon->sel);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user