MCPcopy Create free account
hub / github.com/SFML/SFML / hasFocus

Method hasFocus

src/SFML/Window/Unix/WindowImplX11.cpp:1343–1350  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1341
1342////////////////////////////////////////////////////////////
1343bool WindowImplX11::hasFocus() const
1344{
1345 ::Window focusedWindow = 0;
1346 int revertToReturn = 0;
1347 XGetInputFocus(m_display.get(), &focusedWindow, &revertToReturn);
1348
1349 return m_window == focusedWindow;
1350}
1351
1352
1353////////////////////////////////////////////////////////////

Callers 1

requestFocusMethod · 0.45

Calls 1

getMethod · 0.80

Tested by

no test coverage detected