Commit 790ddc09 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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.
parent 33e037d4
......@@ -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;
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment