Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir     : e17/proto/empower/src/bin


Modified Files:
        empower.c 


Log Message:
May have fixed the sticking window problem, and if not you should be able to 
control your keyboard and mouse.

===================================================================
RCS file: /cvs/e/e17/proto/empower/src/bin/empower.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- empower.c   4 Apr 2006 01:08:06 -0000       1.4
+++ empower.c   4 Apr 2006 01:19:55 -0000       1.5
@@ -53,13 +53,15 @@
                
                if(pid == 0)
                {       
+                       ewl_window_keyboard_grab_set(EWL_WINDOW(win), 0);
+                       ewl_window_pointer_grab_set(EWL_WINDOW(win), 0);
                        sudo_pipe = popen(buf, "w");
                        fprintf(sudo_pipe, "%s\n", password);
                        pclose(sudo_pipe);
                }       
                else
                {               
-                       ewl_widget_hide(win);
+                       ewl_widget_destroy(win);
                        wait(pid);
                }
        }
@@ -137,6 +139,8 @@
        ewl_window_move(EWL_WINDOW(win), xpos, ypos);
        ewl_window_borderless_set(EWL_WINDOW(win));
        ewl_window_raise(EWL_WINDOW(win));
+       ewl_window_keyboard_grab_set(EWL_WINDOW(win), 1);
+       ewl_window_pointer_grab_set(EWL_WINDOW(win), 1);
        ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL);
        ewl_callback_append(win, EWL_CALLBACK_REVEAL, reveal_cb, NULL);
        ewl_callback_append(win, EWL_CALLBACK_KEY_DOWN, check_key, NULL);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to