Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
ewin-ops.c ewins.h ewmh.c ipc.c
Log Message:
Switch desk/viewport on _NET_ACTIVE_WINDOW.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewin-ops.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -3 -r1.70 -r1.71
--- ewin-ops.c 27 Oct 2005 23:18:35 -0000 1.70
+++ ewin-ops.c 29 Oct 2005 23:42:22 -0000 1.71
@@ -1409,6 +1409,18 @@
}
void
+EwinOpActivate(EWin * ewin)
+{
+ DeskGotoByEwin(ewin);
+ EwinOpRaise(ewin);
+ if (ewin->state.iconified)
+ EwinOpIconify(ewin, 0);
+ if (ewin->state.shaded)
+ EwinOpShade(ewin, 0);
+ FocusToEWin(ewin, FOCUS_SET);
+}
+
+void
EwinOpClose(EWin * ewin)
{
EWin **gwins;
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewins.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ewins.h 29 Oct 2005 15:35:39 -0000 1.23
+++ ewins.h 29 Oct 2005 23:42:22 -0000 1.24
@@ -311,6 +311,7 @@
void EwinMoveToArea(EWin * ewin, int ax, int ay);
void EwinOpClose(EWin * ewin);
+void EwinOpActivate(EWin * ewin);
void EwinOpKill(EWin * ewin);
void EwinOpRaise(EWin * ewin);
void EwinOpLower(EWin * ewin);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewmh.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -3 -r1.92 -r1.93
--- ewmh.c 27 Oct 2005 23:18:35 -0000 1.92
+++ ewmh.c 29 Oct 2005 23:42:22 -0000 1.93
@@ -856,12 +856,7 @@
if (ev->message_type == ECORE_X_ATOM_NET_ACTIVE_WINDOW)
{
- if (ewin->state.iconified)
- EwinDeIconify(ewin);
- RaiseEwin(ewin);
- if (ewin->state.shaded)
- EwinUnShade(ewin);
- FocusToEWin(ewin, FOCUS_SET);
+ EwinOpActivate(ewin);
}
else if (ev->message_type == ECORE_X_ATOM_NET_CLOSE_WINDOW)
{
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ipc.c,v
retrieving revision 1.241
retrieving revision 1.242
diff -u -3 -r1.241 -r1.242
--- ipc.c 27 Oct 2005 23:18:35 -0000 1.241
+++ ipc.c 29 Oct 2005 23:42:22 -0000 1.242
@@ -711,13 +711,7 @@
IpcPrintf("focused: %s", (ewin == GetFocusEwin())? "yes" : "no");
goto done;
}
- DeskGotoByEwin(ewin);
- if (ewin->state.iconified)
- EwinOpIconify(ewin, 0);
- if (ewin->state.shaded)
- EwinOpShade(ewin, 0);
- EwinOpRaise(ewin);
- FocusToEWin(ewin, FOCUS_SET);
+ EwinOpActivate(ewin);
break;
case EWIN_OP_FULLSCREEN:
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs