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 |
|
error("Defaulting to geometry 800x600\n"); |
311 |
|
width = 800; |
312 |
|
height = 600; |
313 |
|
} |
314 |
|
} |
315 |
|
|
316 |
if (fullscreen) |
if (fullscreen) |
317 |
{ |
{ |
318 |
width = WidthOfScreen(screen); |
width = WidthOfScreen(screen); |
1190 |
else |
else |
1191 |
{ |
{ |
1192 |
error("this shouldn't be happening\n"); |
error("this shouldn't be happening\n"); |
1193 |
break; |
exit(1); |
1194 |
} |
} |
1195 |
/* this will move pointer from start to first character after FF command */ |
/* this will move pointer from start to first character after FF command */ |
1196 |
length -= i + 3; |
length -= i + 3; |