hi ppl,
       I am trying to write a application to  receive keyboard and mouse
events and then change the focus on windows manually. I am get the events as
required.
I am able to change the focus on windows for the first 3 mouse clicks after
which desired results are not obtained.
I use the folwing code to do the same...
    if(w->focused_client){

(w->layer)->GetWindow(w->layer,w->focused_client->window->id,&interface_focused);

interface_focused->DisableEvents(interface_focused,DWET_ALL);
       }
       (w->layer)->GetWindow(w->layer,c->window->id,&interface);
       DFBCHECK(interface->RequestFocus(interface));        //all events
will be passes to this window
       DFBCHECK(interface->EnableEvents(interface,DWET_ALL));

when i run dfbdump, i get two windows in focus

0x0000000c :   5    200,  230    512 x  145    0x77     3  -  alphachannel
FOCUSED
0x0000000a :   6     20,  150    300 x  200    0x63     2  -  alphachannel
FOCUSED
0x00000006 :   1      0,   30    640 x  480    0xbf     1  -

Can there be two windows in focus at the same time, or should I use some
other API to achieve what I desire..


Regards
ARviND AyyangaR
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to