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
parent
33e037d45d
commit
790ddc0909
|
@ -109,11 +109,6 @@ bool WaylandClient::isLockScreen() const
|
||||||
return surface()->client() == waylandServer()->screenLockerClientConnection();
|
return surface()->client() == waylandServer()->screenLockerClientConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WaylandClient::isInputMethod() const
|
|
||||||
{
|
|
||||||
return surface()->client() == waylandServer()->inputMethodConnection();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool WaylandClient::isLocalhost() const
|
bool WaylandClient::isLocalhost() const
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -34,7 +34,6 @@ public:
|
||||||
quint32 windowId() const override;
|
quint32 windowId() const override;
|
||||||
pid_t pid() const override;
|
pid_t pid() const override;
|
||||||
bool isLockScreen() const override;
|
bool isLockScreen() const override;
|
||||||
bool isInputMethod() const override;
|
|
||||||
bool isLocalhost() const override;
|
bool isLocalhost() const override;
|
||||||
double opacity() const override;
|
double opacity() const override;
|
||||||
void setOpacity(double opacity) override;
|
void setOpacity(double opacity) override;
|
||||||
|
|
Loading…
Reference in New Issue