kwo pushed a commit to branch master.
commit 89c1602253a0637a8157a5eb526f0a8b8e85b3a8
Author: Kim Woelders <[email protected]>
Date: Sat Mar 30 20:57:12 2013 +0100
Startup applications - Don't slide in or place manually during e16 startup.
Broken somewhere in 1.0.12.
This fix probably makes Mode.place.enable_features unnecessary.
---
src/ewins.c | 2 +-
src/ewins.h | 1 +
src/snaps.c | 6 ++++++
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/ewins.c b/src/ewins.c
index 8d51cb2..f781dce 100644
--- a/src/ewins.c
+++ b/src/ewins.c
@@ -824,7 +824,7 @@ AddToFamily(EWin * ewin, Window xwin, int startup)
y = EoGetY(ewin);
doslide = manplace = 0;
- if (Mode.place.enable_features > 0)
+ if (Mode.place.enable_features > 0 && !ewin->state.snapstarted)
{
/* if set for borderless then dont slide it in */
if (Conf.place.slidein &&
diff --git a/src/ewins.h b/src/ewins.h
index 40a7f2e..ec50396 100644
--- a/src/ewins.h
+++ b/src/ewins.h
@@ -88,6 +88,7 @@ struct _ewin {
char shaped;
char shaded;
+ unsigned snapstarted:1; /* Started from snap cmd */
unsigned identified:1;
unsigned placed:1;
unsigned iconified:1;
diff --git a/src/snaps.c b/src/snaps.c
index 578be3e..731b117 100644
--- a/src/snaps.c
+++ b/src/snaps.c
@@ -219,6 +219,12 @@ _SnapEwinFind(EWin * ewin)
/* If exec'ed by snap try matching command exactly */
sn = (Snapshot *) ecore_list_find(ss_list, _SnapEwinFindMatchCmd, ewin);
+ if (sn && sn->startup_id > 0)
+ {
+ /* Assuming we were started by snap */
+ sn->startup_id = 0; /* Only the first time */
+ ewin->state.snapstarted = 1;
+ }
if (!sn)
sn = (Snapshot *) ecore_list_find(ss_list, _SnapEwinFindMatch, ewin);
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html