Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad65067
)
ecere; XInterface Driver; added timer to RepositionDesktop similarly to Win32Interfac...
author
Rejean Loyer
<rejean.loyer@gmail.com>
Wed, 19 Jun 2013 16:08:22 +0000
(12:08 -0400)
committer
Rejean Loyer
<rejean.loyer@gmail.com>
Fri, 21 Jun 2013 14:18:29 +0000
(10:18 -0400)
ecere/src/gui/drivers/XInterface.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/drivers/XInterface.ec
b/ecere/src/gui/drivers/XInterface.ec
index
3a95d38
..
670ccc6
100644
(file)
--- a/
ecere/src/gui/drivers/XInterface.ec
+++ b/
ecere/src/gui/drivers/XInterface.ec
@@
-236,6
+236,11
@@
static void RepositionDesktop(bool updateChildren)
int format;
unsigned long len, fill;
Atom type;
+ static double lastTime = 0, time;
+
+ time = GetTime();
+ if(desktopW && desktopH && time - lastTime < 1.5) return;
+ lastTime = time;
w = XDisplayWidth(xGlobalDisplay, DefaultScreen(xGlobalDisplay));
h = XDisplayHeight(xGlobalDisplay, DefaultScreen(xGlobalDisplay));