aboutsummaryrefslogtreecommitdiff
path: root/nxcompshad/Shadow.cpp
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2011-11-13 09:53:12 +0100
committerReinhard Tartler <siretart@tauware.de>2011-11-13 09:53:12 +0100
commit9f7021392b921ad44163024ed8ca538195d3ac9c (patch)
tree82329db43a3a07d1843a84f7c187131c12592079 /nxcompshad/Shadow.cpp
parentc7dc0c3cdec2e0f2fa2d52f8d446d0e83623a8a0 (diff)
downloadnx-libs-9f7021392b921ad44163024ed8ca538195d3ac9c.tar.gz
nx-libs-9f7021392b921ad44163024ed8ca538195d3ac9c.tar.bz2
nx-libs-9f7021392b921ad44163024ed8ca538195d3ac9c.zip
Imported nxcompshad-3.2.0-3.tar.gznxcompshad/3.2.0-3
Summary: Imported nxcompshad-3.2.0-3.tar.gz Keywords: Imported nxcompshad-3.2.0-3.tar.gz into Git repository
Diffstat (limited to 'nxcompshad/Shadow.cpp')
-rw-r--r--nxcompshad/Shadow.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/nxcompshad/Shadow.cpp b/nxcompshad/Shadow.cpp
index 72213968b..c7fb6b4a3 100644
--- a/nxcompshad/Shadow.cpp
+++ b/nxcompshad/Shadow.cpp
@@ -28,6 +28,15 @@
#include "Poller.h"
#include "Manager.h"
+typedef struct {
+ KeySym *map;
+ KeyCode minKeyCode,
+ maxKeyCode;
+ int mapWidth;
+} KeySymsRec, *KeySymsPtr;
+
+KeySymsPtr NXShadowKeymap = NULL;
+
ShadowOptions NXShadowOptions = {1, 1, -1};
static int mirrorException = 0;
@@ -295,6 +304,16 @@ void NXShadowDisableDamage(void)
NXShadowOptions.optionDamageExtension = 0;
}
+void NXShadowGetScreenSize(int *w, int *h)
+{
+ poller -> getScreenSize(w, h);
+}
+
+void NXShadowSetScreenSize(int *w, int *h)
+{
+ poller -> setScreenSize(w, h);
+}
+
#endif
void NXShadowDestroy()
@@ -406,6 +425,11 @@ void NXShadowEvent(Display *display, XEvent event)
poller -> handleEvent(display, &event);
}
+void NXShadowWebKeyEvent(KeySym keysym, Bool isKeyPress)
+{
+ poller -> handleWebKeyEvent(keysym, isKeyPress);
+}
+
#ifdef __CYGWIN32__
int NXShadowCaptureCursor(unsigned int wnd, void *vis)
@@ -437,3 +461,11 @@ void NXShadowUpdateBuffer(void **buffer)
logTest("NXShadowUpdateBuffer","New frame buffer [0x%p]", (void *)*fBuffer);
}
+
+void NXShadowInitKeymap(void *keysyms)
+{
+ NXShadowKeymap = (KeySymsPtr) keysyms;
+
+ logTest("NXShadowInitKeymap","KeySyms pointer [0x%p] mapWidth [%d]",
+ (void *)NXShadowKeymap, NXShadowKeymap -> mapWidth);
+}