refactor: create include/common.h with shared types/macros, deduplicate across 7 files
This commit is contained in:
@@ -14,17 +14,6 @@
|
||||
#include "monitor.h"
|
||||
#include "scratchpad.h"
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Visibility helper — duplicated from layout.c / peachwm.c */
|
||||
/* ------------------------------------------------------------------ */
|
||||
|
||||
int visibleon(Client *c, Monitor *m) {
|
||||
return m && c->mon == m
|
||||
? (c->isscratchpad ? m->scratchpad_visible
|
||||
: (int)(c->tags & m->tagset[m->seltags]))
|
||||
: 0;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Extern functions from peachwm.c / layout.c / ipc client */
|
||||
/* ------------------------------------------------------------------ */
|
||||
|
||||
Reference in New Issue
Block a user