mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Remove unused function wWindowCheckAttributeSanity()
As pointed out by Nicolas Bonifas, wWindowCheckAttributeSanity() is currently unused. Removing it saves 200 bytes: text data bss dec hex filename 23476 0 8 23484 5bbc src/window.o.new 23676 0 8 23684 5c84 src/window.o.old
This commit is contained in:
18
src/window.c
18
src/window.c
@@ -304,24 +304,6 @@ static void setupGNUstepHints(WWindow *wwin, GNUstepWMAttributes *gs_hints)
|
||||
wwin->client_flags.no_appicon = 1;
|
||||
}
|
||||
|
||||
void wWindowCheckAttributeSanity(WWindow *wwin, WWindowAttributes *wflags, WWindowAttributes *mask)
|
||||
{
|
||||
if (wflags->no_appicon && mask->no_appicon)
|
||||
wflags->emulate_appicon = 0;
|
||||
|
||||
if (wwin->main_window != None) {
|
||||
WApplication *wapp = wApplicationOf(wwin->main_window);
|
||||
if (wapp && !wapp->flags.emulated)
|
||||
wflags->emulate_appicon = 0;
|
||||
}
|
||||
|
||||
if (wwin->transient_for != None && wwin->transient_for != wwin->screen_ptr->root_win)
|
||||
wflags->emulate_appicon = 0;
|
||||
|
||||
if (wflags->sunken && mask->sunken && wflags->floating && mask->floating)
|
||||
wflags->sunken = 0;
|
||||
}
|
||||
|
||||
void wWindowSetupInitialAttributes(WWindow *wwin, int *level, int *workspace)
|
||||
{
|
||||
WScreen *scr = wwin->screen_ptr;
|
||||
|
||||
Reference in New Issue
Block a user