]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/settings.cpp
Added support for delayed deactivation of windows (for MDI)
[wxWidgets.git] / src / x11 / settings.cpp
index d27621f7c45bea38b80bd79b676f5b979e76c0c9..ef5de6e208521c6492fdb161ef5e31e2b82186d8 100644 (file)
 
 #include "wx/settings.h"
 #include "wx/gdicmn.h"
+#include "wx/x11/private.h"
 
 wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
 {
-    // Overridden by wxSystemSettings::GetColour in wxUniversal
-    // to do the Right Thing
+    switch (index)
+    {
+        case wxSYS_COLOUR_APPWORKSPACE:
+            return wxColour( 0xc0c0c0 );
+            
+        default:
+            break;
+    }
+    
+    // Overridden mostly by wxSystemSettings::GetColour in wxUniversal
     return *wxWHITE;
 }
 
@@ -115,11 +124,11 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
             // TODO
             return 0;
         case wxSYS_SCREEN_X:
-            // TODO
-            return 0;
+            return DisplayWidth( wxGlobalDisplay(), 0 );
+            
         case wxSYS_SCREEN_Y:
-            // TODO
-            return 0;
+            return DisplayHeight( wxGlobalDisplay(), 0 );
+            
         case wxSYS_FRAMESIZE_X:
             // TODO
             return 0;