Browse Source

Additional precautions to keep windows from appearing in screenshots.

Dalton Nell 9 years ago
parent
commit
19e9c46838
2 changed files with 3 additions and 1 deletions
  1. 2
    0
      main.cpp
  2. 1
    1
      options.cpp

+ 2
- 0
main.cpp View File

278
     // Clean up global classes.
278
     // Clean up global classes.
279
     delete xengine;
279
     delete xengine;
280
     delete options;
280
     delete options;
281
+    // Sleep for 0.05 seconds to ensure everything was cleaned up. (Without this, slop's window often shows up in screenshots.)
282
+    usleep( 50000 );
281
     // If we canceled the selection, return error.
283
     // If we canceled the selection, return error.
282
     if ( state == -1 ) {
284
     if ( state == -1 ) {
283
         return 1;
285
         return 1;

+ 1
- 1
options.cpp View File

3
 slop::Options* options = new slop::Options();
3
 slop::Options* options = new slop::Options();
4
 
4
 
5
 slop::Options::Options() {
5
 slop::Options::Options() {
6
-    m_version = "v2.1.2";
6
+    m_version = "v2.1.3";
7
     m_highlight = false;
7
     m_highlight = false;
8
     m_borderSize = 10;
8
     m_borderSize = 10;
9
     m_padding = 0;
9
     m_padding = 0;