Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/bin
Modified Files:
ecore_test.c
Log Message:
Added setup for more netwm atoms, also API for working with the current desktop.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/bin/ecore_test.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ecore_test.c 13 Oct 2003 17:36:09 -0000 1.8
+++ ecore_test.c 14 Oct 2003 19:11:35 -0000 1.9
@@ -386,9 +386,12 @@
handler_x_window_configure(void *data, int type, void *event)
{
Ecore_X_Event_Window_Configure *e;
+ const int desktop = 0;
e = event;
printf("Configure %i %i, %ix%i\n", e->x, e->y, e->w, e->h);
+ printf("Switching desktops to %d\n", desktop);
+ ecore_x_window_prop_desktop_request(e->win, desktop);
return 1;
}
@@ -504,6 +507,7 @@
setup_ecore_x_test(void)
{
char *tmp;
+ long data[5] = { 1, 0, 0, 0, 0 };
win = ecore_x_window_new(0, 0, 0, 120, 60);
ecore_x_window_prop_title_set(win, "Ecore Test Program");
@@ -545,6 +549,8 @@
}
printf("Pid: %d\n", ecore_x_window_prop_pid_get(win));
ecore_x_window_prop_name_class_set(win, "ecore_test", "main");
+ ecore_x_window_prop_desktop_set(win, 1);
+ printf("Window on desktop %u\n", ecore_x_window_prop_desktop_get(win));
ecore_x_window_prop_protocol_set(win, ECORE_X_WM_PROTOCOL_DELETE_REQUEST, 1);
ecore_x_window_show(win);
ecore_x_flush();
@@ -569,6 +575,7 @@
ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROP_NAME_CLASS_CHANGE,
handler_x_window_prop_name_class_change, NULL);
ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROP_CLIENT_MACHINE_CHANGE,
handler_x_window_prop_client_machine_change, NULL);
ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROP_PID_CHANGE,
handler_x_window_prop_pid_change, NULL);
+
}
#endif
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs