From: <enl...@li...> - 2000-11-21 22:35:44
|
Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore Modified Files: Ecore.h e_x.c Log Message: more code to do window management =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/Ecore.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- Ecore.h 2000/11/17 18:28:11 1.8 +++ Ecore.h 2000/11/21 22:35:42 1.9 @@ -245,6 +245,8 @@ void e_window_add_to_save_set(Window win); void e_window_del_from_save_set(Window win); void e_window_kill_client(Window win); +void e_window_set_border_width(Window win, int bw); +int e_window_get_wm_size_hints(Window win, XSizeHints *hints, int *mask); typedef struct _eev Eevent; typedef struct _ev_fd_handler Ev_Fd_Handler; =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/e_x.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- e_x.c 2000/11/17 18:28:11 1.11 +++ e_x.c 2000/11/21 22:35:42 1.12 @@ -1174,7 +1174,8 @@ if (win == 0) win = default_root; - if (xid->coords_invalid) + xid = e_validate_xid(win); + if ((xid) && (xid->coords_invalid)) { Window dw; int rx, ry; @@ -1187,7 +1188,6 @@ xid->h = (int)rh; xid->coords_invalid = 0; } - xid = e_validate_xid(win); if (xid) { if (x) @@ -2622,4 +2622,21 @@ e_window_kill_client(Window win) { XKillClient(disp, (XID)win); +} + +void +e_window_set_border_width(Window win, int bw) +{ + XSetWindowBorderWidth(disp, win, bw); +} + +int +e_window_get_wm_size_hints(Window win, XSizeHints *hints, int *mask) +{ + long sup_ret; + Status ok; + + ok = XGetWMNormalHints(disp, win, hints, &sup_ret); + *mask = (int)sup_ret; + return ok; } |