Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
hints.c
Log Message:
Handle switching between versions with minor ENL_DATA differences a bit better.
===================================================================
RCS file: /cvs/e/e16/e/src/hints.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -3 -r1.78 -r1.79
--- hints.c 17 Mar 2007 15:49:41 -0000 1.78
+++ hints.c 7 Apr 2007 14:18:45 -0000 1.79
@@ -325,7 +325,7 @@
} EWinInfoFlags;
#define ENL_DATA_ITEMS 12
-#define ENL_DATA_VERSION 1
+#define ENL_DATA_VERSION 0
void
EHintsSetInfo(const EWin * ewin)
@@ -381,13 +381,16 @@
num = ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin), ENL_WIN_DATA,
(unsigned int *)c, ENL_DATA_ITEMS + 1);
- if (num != ENL_DATA_ITEMS)
+ if (num < 0)
return;
ewin->state.identified = 1;
ewin->client.grav = StaticGravity;
ewin->state.placed = 1;
+ if (num < 2)
+ return;
+
f.all = c[0];
if (f.b.version != ENL_DATA_VERSION)
return;
@@ -396,15 +399,18 @@
EwinFlagsDecode(ewin, c[1]);
- ewin->save_max.x = c[3];
- ewin->save_max.y = c[4];
- ewin->save_max.w = c[5];
- ewin->save_max.h = c[6];
- ewin->save_fs.x = c[7];
- ewin->save_fs.y = c[8];
- ewin->save_fs.w = c[9];
- ewin->save_fs.h = c[10];
- ewin->save_fs.layer = c[11];
+ if (num == ENL_DATA_ITEMS)
+ {
+ ewin->save_max.x = c[3];
+ ewin->save_max.y = c[4];
+ ewin->save_max.w = c[5];
+ ewin->save_max.h = c[6];
+ ewin->save_fs.x = c[7];
+ ewin->save_fs.y = c[8];
+ ewin->save_fs.w = c[9];
+ ewin->save_fs.h = c[10];
+ ewin->save_fs.layer = c[11];
+ }
str =
ecore_x_window_prop_string_get(EwinGetClientXwin(ewin), ENL_WIN_BORDER);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs