mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Remove unused wWindowCanReceiveFocus()
The function wWindowCanReceiveFocus() is not used, remove it.
This commit is contained in:
committed by
Carlos R. Mafra
parent
fc9e453de2
commit
c815449e68
12
src/window.c
12
src/window.c
@@ -421,18 +421,6 @@ void wWindowSetupInitialAttributes(WWindow *wwin, int *level, int *workspace)
|
|||||||
wwin->client_flags.no_focusable = 1;
|
wwin->client_flags.no_focusable = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool wWindowCanReceiveFocus(WWindow *wwin)
|
|
||||||
{
|
|
||||||
if (!wwin->flags.mapped && (!wwin->flags.shaded || wwin->flags.hidden))
|
|
||||||
return False;
|
|
||||||
if (WFLAGP(wwin, no_focusable) || wwin->flags.miniaturized)
|
|
||||||
return False;
|
|
||||||
if (wwin->frame->workspace != wwin->screen_ptr->current_workspace)
|
|
||||||
return False;
|
|
||||||
|
|
||||||
return True;
|
|
||||||
}
|
|
||||||
|
|
||||||
Bool wWindowObscuresWindow(WWindow *wwin, WWindow *obscured)
|
Bool wWindowObscuresWindow(WWindow *wwin, WWindow *obscured)
|
||||||
{
|
{
|
||||||
int w1, h1, w2, h2;
|
int w1, h1, w2, h2;
|
||||||
|
|||||||
@@ -409,8 +409,6 @@ void wWindowMap(WWindow *wwin);
|
|||||||
|
|
||||||
void wWindowUnmap(WWindow *wwin);
|
void wWindowUnmap(WWindow *wwin);
|
||||||
|
|
||||||
Bool wWindowCanReceiveFocus(WWindow *wwin);
|
|
||||||
|
|
||||||
void wWindowDeleteSavedStatesForPID(pid_t pid);
|
void wWindowDeleteSavedStatesForPID(pid_t pid);
|
||||||
|
|
||||||
WMagicNumber wWindowAddSavedState(char *instance, char *class, char *command,
|
WMagicNumber wWindowAddSavedState(char *instance, char *class, char *command,
|
||||||
|
|||||||
Reference in New Issue
Block a user