mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Removed dup function wScreenSearchForRootWindow
The function wScreenSearchForRootWindow is exactly like wScreenForRootWindow so can be removed swapping the function call.
This commit is contained in:
committed by
Carlos R. Mafra
parent
a401dcbdf6
commit
052efedd93
@@ -429,27 +429,6 @@ WScreen *wScreenForRootWindow(Window window)
|
||||
return wScreenForWindow(window);
|
||||
}
|
||||
|
||||
WScreen *wScreenSearchForRootWindow(Window window)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (wScreenCount == 1)
|
||||
return wScreen[0];
|
||||
|
||||
/*
|
||||
* Since the number of heads will probably be small (normally 2),
|
||||
* it should be faster to use this than a hash table, because
|
||||
* of the overhead.
|
||||
*/
|
||||
for (i = 0; i < wScreenCount; i++) {
|
||||
if (wScreen[i]->root_win == window) {
|
||||
return wScreen[i];
|
||||
}
|
||||
}
|
||||
|
||||
return wScreenForWindow(window);
|
||||
}
|
||||
|
||||
WScreen *wScreenForWindow(Window window)
|
||||
{
|
||||
XWindowAttributes attr;
|
||||
|
||||
Reference in New Issue
Block a user