298 |
host_be = !(BOOL) (*(uint8 *) (&test)); |
host_be = !(BOOL) (*(uint8 *) (&test)); |
299 |
xserver_be = (ImageByteOrder(display) == MSBFirst); |
xserver_be = (ImageByteOrder(display) == MSBFirst); |
300 |
|
|
301 |
|
if ((width == 0) || (height == 0)) |
302 |
|
{ |
303 |
|
/* Fetch geometry from _NET_WORKAREA */ |
304 |
|
uint32 xpos, ypos; |
305 |
|
|
306 |
|
if (get_current_workarea(&xpos, &ypos, &width, &height) < 0) |
307 |
|
{ |
308 |
|
error("Failed to get workarea.\n"); |
309 |
|
error("Perhaps your window manager does not support EWMH?\n"); |
310 |
|
exit(1); |
311 |
|
} |
312 |
|
} |
313 |
|
|
314 |
if (fullscreen) |
if (fullscreen) |
315 |
{ |
{ |
316 |
width = WidthOfScreen(screen); |
width = WidthOfScreen(screen); |