mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
This commit is contained in:
parent
25448ad8b2
commit
1e5a9ad56e
54 changed files with 11665 additions and 2506 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#include <X11/Xmd.h>
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/cursorfont.h>
|
||||
#include <X11/extensions/scrnsaver.h>
|
||||
|
||||
#if JUCE_USE_XINERAMA
|
||||
/* If you're trying to use Xinerama, you'll need to install the "libxinerama-dev" package..
|
||||
|
|
@ -2564,14 +2565,20 @@ void Desktop::setMousePosition (int x, int y) throw()
|
|||
|
||||
|
||||
//==============================================================================
|
||||
static bool screenSaverAllowed = false;
|
||||
|
||||
void Desktop::setScreenSaverEnabled (const bool isEnabled) throw()
|
||||
{
|
||||
jassertfalse // anyone know how to do this??
|
||||
if (screenSaverAllowed != isEnabled)
|
||||
{
|
||||
screenSaverAllowed = isEnabled;
|
||||
XScreenSaverSuspend (display, ! isEnabled);
|
||||
}
|
||||
}
|
||||
|
||||
bool Desktop::isScreenSaverEnabled() throw()
|
||||
{
|
||||
return true;
|
||||
return screenSaverAllowed;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -2897,6 +2904,14 @@ bool juce_makeOpenGLContextCurrent (void* context)
|
|||
return glXMakeCurrent (display, None, 0);
|
||||
}
|
||||
|
||||
bool juce_isActiveOpenGLContext (void* context) throw()
|
||||
{
|
||||
OpenGLContextInfo* const oc = (OpenGLContextInfo*) context;
|
||||
|
||||
jassert (oc != 0);
|
||||
return glXGetCurrentContext() == oc->renderContext;
|
||||
}
|
||||
|
||||
void juce_swapOpenGLBuffers (void* context)
|
||||
{
|
||||
OpenGLContextInfo* const oc = (OpenGLContextInfo*) context;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue