Dennis New wrote:
> I'd like e16 to remember my window attributes for all windows with a
> certain title, for example. I.e. if I have 8 xmessage windows open, I
> would like them all to have the same location/border/etc attributes.
> But, currently, trying to set the "Remember..." settings for one of
> them will only get applied to one of them. I.e. I would need to repeat
> this step 8 times to get the settings applied to all 8 instances. I.e.
> I would need 8 separate instances of:
>
> NEW: xmessage.Xmessage
> NAME: xmessage
> CLASS: Xmessage
> BORDER: BORDERLESS
>
> in my e_config--0.0.snapshots . And if I had a 9th such window open,
> the settings wouldn't get applied.
>
> This little snaps.c hack seems to do the trick -- my settings are
> getting applied to all instances, but I'm not sure if things will blow
> up or what the original intentions behind checking for sn->used were:
>
>
> --- e16-1.0.14-a/src/snaps.c    2014-03-02 10:04:13.000000000 -0500
> +++ e16-1.0.14-b/src/snaps.c    2014-04-22 22:22:48.000000000 -0400
> @@ -198,7 +198,7 @@
>      const Snapshot     *sn = (Snapshot *) data;
>      const EWin         *ewin = (EWin *) match;
>
> -   return sn->used || !_SnapEwinMatch(sn, ewin);
> +   return !_SnapEwinMatch(sn, ewin);
>   }
>
>   /* find a snapshot state that applies to this ewin */
>
The snapshots are intended to be applied to one instance of a window, 
and the sn->used flag indicates if the particular snapshot has been used 
and should therefore not be applied to other windows.

If you have some properties you would like to apply to all instances of 
certain window types you can use "matches".
Copy /usr/share/e16/config/matches.cfg to ~/.e16/matches.cfg and add 
stuff as desired, maybe something like

Class Xmessage Border BORDERLESS
Class Xmessage Winop move 100 100

Changes to matches.cfg will not take effect until e16 is restarted.

/Kim


------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to