Remove WaylandClient::isInputMethod()

We assume that the input method server has at most one surface at a time,
which corresponds to the virtual keyboard. But it's not guaranteed to be
always true.

For example, an xdg_toplevel surface can be created for a configuration
dialog, in which case isInputMethod() should not return true.
master
Vlad Zahorodnii 2020-09-04 09:13:26 +03:00
parent 33e037d45d
commit 790ddc0909
2 changed files with 0 additions and 6 deletions

View File

@ -109,11 +109,6 @@ bool WaylandClient::isLockScreen() const
return surface()->client() == waylandServer()->screenLockerClientConnection();
}
bool WaylandClient::isInputMethod() const
{
return surface()->client() == waylandServer()->inputMethodConnection();
}
bool WaylandClient::isLocalhost() const
{
return true;

View File

@ -34,7 +34,6 @@ public:
quint32 windowId() const override;
pid_t pid() const override;
bool isLockScreen() const override;
bool isInputMethod() const override;
bool isLocalhost() const override;
double opacity() const override;
void setOpacity(double opacity) override;