315 |
if ((width == 0) || (height == 0)) |
if ((width == 0) || (height == 0)) |
316 |
{ |
{ |
317 |
/* Fetch geometry from _NET_WORKAREA */ |
/* Fetch geometry from _NET_WORKAREA */ |
318 |
uint32 xpos, ypos; |
uint32 x, y, cx, cy; |
319 |
|
|
320 |
if (get_current_workarea(&xpos, &ypos, &width, &height) < 0) |
if (get_current_workarea(&x, &y, &cx, &cy) == 0) |
321 |
|
{ |
322 |
|
width = cx; |
323 |
|
height = cy; |
324 |
|
} |
325 |
|
else |
326 |
{ |
{ |
327 |
warning("Failed to get workarea: probably your window manager does not support extended hints\n"); |
warning("Failed to get workarea: probably your window manager does not support extended hints\n"); |
328 |
width = 800; |
width = 800; |