Platform/Unix/X11Display: Adding getFocused()
This commit is contained in:
parent
d971cd6cb2
commit
d9f54b08ca
2 changed files with 14 additions and 0 deletions
|
|
@ -14,6 +14,17 @@
|
||||||
|
|
||||||
namespace sp {
|
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::
|
||||||
X11Display() :
|
X11Display() :
|
||||||
m_screen (0),
|
m_screen (0),
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,9 @@ namespace sp {
|
||||||
class X11Display : public PlatformDisplay
|
class X11Display : public PlatformDisplay
|
||||||
{
|
{
|
||||||
public :
|
public :
|
||||||
|
|
||||||
|
static X11Display* getFocused();
|
||||||
|
|
||||||
X11Display();
|
X11Display();
|
||||||
|
|
||||||
virtual bool create(DisplayDescription description);
|
virtual bool create(DisplayDescription description);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue