Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
ewin-ops.c ewin-ops.h ewins.c ewins.h windowmatch.c x.c xwin.h
Log Message:
Enable not using ARGB frame for ARGB clients (selected by window match).
===================================================================
RCS file: /cvs/e/e16/e/src/ewin-ops.c,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -3 -r1.126 -r1.127
--- ewin-ops.c 5 Jun 2008 08:55:20 -0000 1.126
+++ ewin-ops.c 5 Jun 2008 17:59:51 -0000 1.127
@@ -90,7 +90,8 @@
{"no_wm_focus", 0, 1, 1, EWIN_OP_INH_WM_FOCUS},
{"fade", 0, 1, 1, EWIN_OP_FADE},
- {"noredir", 4, 1, 1, EWIN_OP_NO_REDIRECT},
+ {"no_redir", 4, 1, 1, EWIN_OP_NO_REDIRECT},
+ {"no_argb", 0, 1, 1, EWIN_OP_NO_ARGB},
{NULL, 0, 0, 0, EWIN_OP_INVALID} /* Terminator */
};
===================================================================
RCS file: /cvs/e/e16/e/src/ewin-ops.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ewin-ops.h 23 Mar 2008 11:54:23 -0000 1.11
+++ ewin-ops.h 5 Jun 2008 17:59:51 -0000 1.12
@@ -74,6 +74,7 @@
EWIN_OP_FADE,
EWIN_OP_SHADOW,
EWIN_OP_NO_REDIRECT,
+ EWIN_OP_NO_ARGB,
} winop_e;
typedef struct {
===================================================================
RCS file: /cvs/e/e16/e/src/ewins.c,v
retrieving revision 1.231
retrieving revision 1.232
diff -u -3 -r1.231 -r1.232
--- ewins.c 5 Jun 2008 17:45:01 -0000 1.231
+++ ewins.c 5 Jun 2008 17:59:51 -0000 1.232
@@ -232,7 +232,7 @@
frame = EoGetWin(ewin);
if (!frame)
{
- type = WIN_TYPE_CLIENT;
+ type = (ewin->props.no_argb) ? WIN_TYPE_NO_ARGB : WIN_TYPE_CLIENT;
frame =
ECreateObjectWindow(VROOT, ewin->client.x, ewin->client.y,
ewin->client.w, ewin->client.h, 0, type,
@@ -319,7 +319,6 @@
{
EwinStateUpdate(ewin);
- WindowMatchEwinOps(ewin); /* Window matches */
if (!EwinIsInternal(ewin) && Mode.wm.startup)
EHintsGetInfo(ewin); /* E restart hints */
EwinHintsInferProps(ewin);
@@ -689,6 +688,7 @@
}
EwinGetHints(ewin);
+ WindowMatchEwinOps(ewin); /* Window matches */
EwinManage(ewin);
EwinConfigure(ewin);
@@ -947,6 +947,7 @@
goto done;
EwinGetAttributes(ewin, win, None);
+ WindowMatchEwinOps(ewin); /* Window matches */
EwinManage(ewin);
ewin->data = ptr;
===================================================================
RCS file: /cvs/e/e16/e/src/ewins.h,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -3 -r1.86 -r1.87
--- ewins.h 10 May 2008 23:22:31 -0000 1.86
+++ ewins.h 5 Jun 2008 17:59:51 -0000 1.87
@@ -137,6 +137,7 @@
unsigned skip_winlist:1;
unsigned focusclick:1; /* Click to focus */
unsigned no_button_grabs:1;
+ unsigned no_argb:1; /* Do not use ARGB frame */
/* Derived from other properties */
unsigned no_border:1; /* Never apply border (MWM/netwm type)
*/
===================================================================
RCS file: /cvs/e/e16/e/src/windowmatch.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -3 -r1.71 -r1.72
--- windowmatch.c 5 Jun 2008 17:32:50 -0000 1.71
+++ windowmatch.c 5 Jun 2008 17:59:51 -0000 1.72
@@ -778,6 +778,10 @@
case EWIN_OP_NO_REDIRECT:
WINOP_SET_BOOL(ewin->o.noredir, args);
break;
+
+ case EWIN_OP_NO_ARGB:
+ WINOP_SET_BOOL(ewin->props.no_argb, args);
+ break;
#endif
}
}
===================================================================
RCS file: /cvs/e/e16/e/src/x.c,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -3 -r1.178 -r1.179
--- x.c 5 Jun 2008 17:45:01 -0000 1.178
+++ x.c 5 Jun 2008 17:59:51 -0000 1.179
@@ -441,6 +441,7 @@
switch (type)
{
default:
+ case WIN_TYPE_NO_ARGB:
break;
case WIN_TYPE_CLIENT:
if (Conf.testing.argb_clients || EVisualIsARGB(cwin->visual))
===================================================================
RCS file: /cvs/e/e16/e/src/xwin.h,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- xwin.h 5 Jun 2008 17:45:01 -0000 1.48
+++ xwin.h 5 Jun 2008 17:59:51 -0000 1.49
@@ -167,7 +167,8 @@
#define WIN_TYPE_CLIENT 0
#define WIN_TYPE_INTERNAL 1
-#define WIN_TYPE_GLX 2
+#define WIN_TYPE_NO_ARGB 2
+#define WIN_TYPE_GLX 3
Win ECreateObjectWindow(Win parent, int x, int y, int w,
int h, int saveunder, int type,
Win cwin);
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs