Rename raiseWindows() to ensureOnTop()

REVIEW: 101789
This commit is contained in:
Arthur Arlt 2011-07-04 12:55:58 +02:00
parent c8cf1e4c7e
commit aa14d53b71
3 changed files with 4 additions and 4 deletions

View file

@ -870,7 +870,7 @@ Window EffectsHandlerImpl::createInputWindow(Effect* e, int x, int y, int w, int
// Raise electric border windows above the input windows // Raise electric border windows above the input windows
// so they can still be triggered. // so they can still be triggered.
Workspace::self()->screenEdge()->raiseWindows(); Workspace::self()->screenEdge()->ensureOnTop();
return win; return win;
} }
@ -941,7 +941,7 @@ void EffectsHandlerImpl::checkInputWindowStacking()
delete[] wins; delete[] wins;
// Raise electric border windows above the input windows // Raise electric border windows above the input windows
// so they can still be triggered. TODO: Do both at once. // so they can still be triggered. TODO: Do both at once.
Workspace::self()->screenEdge()->raiseWindows(); Workspace::self()->screenEdge()->ensureOnTop();
} }
QPoint EffectsHandlerImpl::cursorPos() const QPoint EffectsHandlerImpl::cursorPos() const

View file

@ -352,7 +352,7 @@ bool ScreenEdge::isEntered(XEvent* e)
return false; return false;
} }
void ScreenEdge::raiseWindows() void ScreenEdge::ensureOnTop()
{ {
Window* windows = new Window[ 8 ]; // There are up to 8 borders Window* windows = new Window[ 8 ]; // There are up to 8 borders
int pos = 0; int pos = 0;

View file

@ -89,7 +89,7 @@ public:
* Raise electric border windows to the real top of the screen. We only need * Raise electric border windows to the real top of the screen. We only need
* to do this if an effect input window is active. * to do this if an effect input window is active.
*/ */
void raiseWindows(); void ensureOnTop();
/** /**
* Called when the user entered an electric border with the mouse. * Called when the user entered an electric border with the mouse.
* It may switch to another virtual desktop. * It may switch to another virtual desktop.