|
Lines 531-544
Link Here
|
| 531 |
if (window_id == -3) { |
531 |
if (window_id == -3) { |
| 532 |
/* display zoomed on the (virtual) root window */ |
532 |
/* display zoomed on the (virtual) root window */ |
| 533 |
instance->window = DefaultRootWindow (instance->display); |
533 |
instance->window = DefaultRootWindow (instance->display); |
| 534 |
instance->displaywidth = DisplayWidth(instance->display, DefaultScreen (instance->display)); |
534 |
XWindowAttributes xgwa; |
| 535 |
instance->displayheight = DisplayHeight(instance->display, DefaultScreen (instance->display)); |
535 |
XGetWindowAttributes (instance->display, instance->window, &xgwa); |
|
|
536 |
instance->displaywidth = xgwa.width; |
| 537 |
instance->displayheight = xgwa.height; |
| 536 |
} else if (window_id == -2) { |
538 |
} else if (window_id == -2) { |
| 537 |
/* display non-zoomed on the (virtual) root window */ |
539 |
/* display non-zoomed on the (virtual) root window */ |
| 538 |
int w, h; |
540 |
int w, h; |
| 539 |
w = DisplayWidth(instance->display, DefaultScreen (instance->display)); |
|
|
| 540 |
h = DisplayHeight(instance->display, DefaultScreen (instance->display)); |
| 541 |
instance->window = DefaultRootWindow (instance->display); |
541 |
instance->window = DefaultRootWindow (instance->display); |
|
|
542 |
XWindowAttributes xgwa; |
| 543 |
XGetWindowAttributes (instance->display, instance->window, &xgwa); |
| 544 |
w = xgwa.width; |
| 545 |
h = xgwa.height; |
| 542 |
instance->corner_x = (w - instance->width)/2; |
546 |
instance->corner_x = (w - instance->width)/2; |
| 543 |
instance->corner_y = (h - instance->height)/2; |
547 |
instance->corner_y = (h - instance->height)/2; |
| 544 |
} else if (window_id == -1) { |
548 |
} else if (window_id == -1) { |