Drop Toplevel::isOnScreen()

It's unused. Its replacement is Toplevel::isOnOutput().
remotes/origin/work/janb/clang-format
Vlad Zahorodnii 5 years ago
parent 93ec5d8ea9
commit e198727e15
  1. 5
      src/toplevel.cpp
  2. 1
      src/toplevel.h

@ -415,11 +415,6 @@ qreal Toplevel::bufferScale() const
return surface() ? surface()->bufferScale() : 1;
}
bool Toplevel::isOnScreen(int screen) const
{
return screens()->geometry(screen).intersects(frameGeometry());
}
bool Toplevel::isOnActiveOutput() const
{
return isOnOutput(workspace()->activeOutput());

@ -341,7 +341,6 @@ public:
int y() const;
int width() const;
int height() const;
bool isOnScreen(int screen) const; // true if it's at least partially there
bool isOnOutput(AbstractOutput *output) const;
bool isOnActiveOutput() const;
int screen() const; // the screen where the center is

Loading…
Cancel
Save