1
0
Fork 0

Platform/Unix/X11Display: Adding getFocused()

This commit is contained in:
Henrik Hautakoski 2020-12-20 16:01:37 +01:00
parent d971cd6cb2
commit d9f54b08ca
2 changed files with 14 additions and 0 deletions

View file

@ -14,6 +14,17 @@
namespace sp {
namespace _priv {
// Pointer to the display that has focus (or NULL if none have).
X11Display* focused_display = NULL;
}
X11Display* X11Display::getFocused()
{
return _priv::focused_display;
}
X11Display::
X11Display() :
m_screen (0),

View file

@ -16,6 +16,9 @@ namespace sp {
class X11Display : public PlatformDisplay
{
public :
static X11Display* getFocused();
X11Display();
virtual bool create(DisplayDescription description);