On Fri, 20 May 2005 11:18:15 +0200 "Tamas Morvai" <[EMAIL PROTECTED]> babbled:
(B
(B> 
(B> Hi all,
(B> 
(B> I made a little patch for setting the focus like in e16.
(B> It can only be configured at compile time, but if this patch is ok I  
(B> intend to
(B> make it configurable via ipc.
(B> 
(B> The possible values of FOCUS_SETTING
(B> 
(B> 0: normal mode
(B> 1: new windows get the focus
(B> 2: only dialogs get the focus
(B> 3. only dialogs whose owner is focused get the focus
(B
(Bhmm - this needs changing. 1.
(Balways put double () around if statements
(Bie
(BNOT:
(B
(Bif (owner && owner == ecore_x_window_focus_get())
(B
(BBUT this:
(B
(Bif ((owner) && (owner == ecore_x_window_focus_get()))
(B
(Bsecond - i am not a fan of setting  variables to dynamic results at declaration
(Btime - split declaration and setting. ie:
(B
(BNOT:
(B
(BEcore_X_Window owner = ecore_x_icccm_transient_for_get(win);
(B
(BBut this:
(B
(BEcore_X_Window owner;
(B
(Bowner = ecore_x_icccm_transient_for_get(win);
(B
(BI have my reasons.
(B
(Banyway - you also do a query of this each time. the transient for win should be
(Bstored in the borders icccm props on manage (and whenever the property changes)
(Band then just access from there. remember a get like this is a round trip to x.
(Bthat means the wm sends a request and sits and waits for x to reply, doing
(Bnothing in between. doing this too often is BAD. that's why we try and get the
(Bproperties and store them locally and access the local copies/versions all the
(Btime. and yes - it needs to become an e_config option not a #define :) what do 1
(B2 and 3 mean precisely anyway :)
(B
(B-- 
(B------------- Codito, ergo sum - "I code, therefore I am" --------------
(BThe Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
$BMg9%B?(B                              [EMAIL PROTECTED]
(BTokyo, Japan ($BEl5~(B $BF|K\(B)
(B
(B
(B-------------------------------------------------------
(BThis SF.Net email is sponsored by Oracle Space Sweepstakes
(BWant to be the first software developer in space?
(BEnter now for the Oracle Space Sweepstakes!
(Bhttp://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
(B_______________________________________________
(Benlightenment-devel mailing list
([email protected]
(Bhttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to