GLXRenderer: Fix dependency to the new config file location
authorMichael Schuldt <michael.schuldt@bmw.de>
Fri, 16 Mar 2012 12:46:49 +0000 (13:46 +0100)
committerMichael Schuldt <michael.schuldt@bmw.de>
Fri, 16 Mar 2012 13:11:51 +0000 (14:11 +0100)
- Removing config specific attributes in XWindowSystem.h file.
  No dependency of the build configuration is allowed in header
  files which are needed to link against a development library

LayerManagerPlugins/Renderers/Graphic/include/WindowSystems/X11WindowSystem.h
LayerManagerPlugins/Renderers/Graphic/src/WindowSystems/X11WindowSystem.cpp
LayerManagerPlugins/Renderers/Platform/GLXRenderer/CMakeLists.txt

index befc375..24f13df 100644 (file)
@@ -124,10 +124,8 @@ private:
     static int error(Display *dpy, XErrorEvent *ev);
 
     static bool m_xerror;
-    #ifdef WITH_INPUT_EVENTS
     void ManageXInputEvent(XEvent *pevent);
-    #endif
-    
+   
     friend void * X11eventLoopCallback(void *);
 };
 
index 88a2650..d62e4ad 100644 (file)
@@ -893,9 +893,9 @@ init_complete:
 }
 
 
-#ifdef WITH_INPUT_EVENTS
 void X11WindowSystem::ManageXInputEvent(XEvent *pevent)
 {
+#ifdef WITH_INPUT_EVENTS
     Surface * surf;
     int *pX, *pY;
 
@@ -921,8 +921,8 @@ void X11WindowSystem::ManageXInputEvent(XEvent *pevent)
         pevent->xany.window = surf->getNativeContent();
         XSendEvent(x11Display, pevent->xany.window, false, 0, pevent);
     }
-}
 #endif
+}
 
 
 #ifdef WITH_XTHREADS
index bb2755d..69c5f0d 100644 (file)
@@ -7,7 +7,7 @@
 # you may not use this file except in compliance with the License. 
 # You may obtain a copy of the License at 
 #
-#              http://www.apache.org/licenses/LICENSE-2.0 
+#       http://www.apache.org/licenses/LICENSE-2.0 
 #
 # Unless required by applicable law or agreed to in writing, software 
 # distributed under the License is distributed on an "AS IS" BASIS, 
@@ -22,7 +22,7 @@ cmake_minimum_required (VERSION 2.6)
 include_directories ("include")
 include_directories ("../../Base/include")
 include_directories ("../../Graphic/include")
-
+include_directories ("${PROJECT_SOURCE_DIR}/config")
 include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerService/include")
 link_directories ("${PROJECT_SOURCE_DIR}/LayerManagerService/bin")
 include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerUtils/include")