forked from enlightenment/efl
don't allow ecore_x_window_border_width_get/set calls on the default root window.
SVN revision: 11390
This commit is contained in:
parent
5dd253c9ad
commit
0360534032
|
@ -487,6 +487,10 @@ ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h)
|
||||||
int
|
int
|
||||||
ecore_x_window_border_width_get(Ecore_X_Window win)
|
ecore_x_window_border_width_get(Ecore_X_Window win)
|
||||||
{
|
{
|
||||||
|
/* doesn't make sense to call this on a root window */
|
||||||
|
if (!win)
|
||||||
|
return 0;
|
||||||
|
|
||||||
return ecore_x_drawable_border_width_get(win);
|
return ecore_x_drawable_border_width_get(win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -498,6 +502,10 @@ ecore_x_window_border_width_get(Ecore_X_Window win)
|
||||||
void
|
void
|
||||||
ecore_x_window_border_width_set(Ecore_X_Window win, int width)
|
ecore_x_window_border_width_set(Ecore_X_Window win, int width)
|
||||||
{
|
{
|
||||||
|
/* doesn't make sense to call this on a root window */
|
||||||
|
if (!win)
|
||||||
|
return;
|
||||||
|
|
||||||
XSetWindowBorderWidth (_ecore_x_disp, win, width);
|
XSetWindowBorderWidth (_ecore_x_disp, win, width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue