Permalink
Browse files

use 'None' for destroyed windows instead of -1

  • Loading branch information...
1 parent 5703efe commit 12fce5b618688e8477bc61f82a712eeed78922de @NotFound committed Dec 2, 2011
Showing with 3 additions and 1 deletion.
  1. +2 −0 GuitorConstants.winxhead
  2. +1 −1 src/Guitor.winxed
View
@@ -36,6 +36,8 @@ const int
ClipByChildren = 0,
IncludeInferiors = 1;
+// Some commonly used values:
+const int None = 0;
const int CurrentTime = 0;
// Focus revert type
View
@@ -913,7 +913,7 @@ class Window : Drawable
{
__DEBUG__ && cry(__FUNCTION__);
getfun("XDestroyWindow")(self.display.xdisplay, self.xdrawable);
- self.xdrawable = -1;
+ self.xdrawable = None;
}
function SelectInput(int eventmask)
{

0 comments on commit 12fce5b

Please sign in to comment.