Changeset db7338733205016856ef3f34ff3991c2dfd07aa8
- Timestamp:
- 07/29/2008 05:53:46 AM
(4 months ago)
- Author:
- Dave Foster <daf@minuslab.net>
- git-committer:
- Dave Foster <daf@minuslab.net> 1217336026 -0400
- git-parent:
[680127076a15d34b15e89a7d6ad8cb77840b04cf]
- git-author:
- Dave Foster <daf@minuslab.net> 1217336026 -0400
- Message:
Removed excess program_log (used for debugging.)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r7053717 |
rdb73387 |
|
| 233 | 233 | window->get_geometry(winx,winy,winw,winh,wind); |
|---|
| 234 | 234 | |
|---|
| 235 | | program_log("got xin root window %x", GDK_WINDOW_XWINDOW(window->gobj())); |
|---|
| 236 | | |
|---|
| 237 | 235 | // determine our target dimensions |
|---|
| 238 | 236 | gint tarx, tary, tarw, tarh; |
|---|
| … | … | |
| 249 | 247 | } |
|---|
| 250 | 248 | |
|---|
| 251 | | program_log("determined xinerama x/y w/h to be %d, %d and %d x %d", tarx, tary, tarw, tarh); |
|---|
| 252 | | |
|---|
| 253 | 249 | Display *xdisp = GDK_DISPLAY_XDISPLAY(_display->gobj()); |
|---|
| 254 | 250 | XSetCloseDownMode(xdisp, RetainPermanent); |
|---|
| … | … | |
| 271 | 267 | if (type == XA_PIXMAP && *((Pixmap *) data_root) == *((Pixmap *) data_esetroot)) { |
|---|
| 272 | 268 | xoldpm = (Pixmap*)data_root; |
|---|
| 273 | | program_log("previously set xin pixmap is %x", *((Pixmap*) data_root)); |
|---|
| 274 | 269 | } |
|---|
| 275 | 270 | } |
|---|
| … | … | |
| 289 | 284 | pixmap->get_size(width, height); |
|---|
| 290 | 285 | |
|---|
| 291 | | program_log("xin old pixmap (%x) is %d x %d", *xoldpm, width, height); |
|---|
| 292 | | |
|---|
| 293 | 286 | if ((width != winw) || (height != winh) || (pixmap->get_depth() != window->get_depth()) ) { |
|---|
| 294 | | program_log("xin killing too small pixmap (%d x %d)", width, height); |
|---|
| 295 | 287 | XKillClient(xdisp, *((Pixmap *) data_root)); |
|---|
| 296 | 288 | xoldpm = NULL; |
|---|
| … | … | |
| 303 | 295 | int width, height; |
|---|
| 304 | 296 | pixmap->get_size(width, height); |
|---|
| 305 | | program_log("created new xin pixmap %x (%d x %d)", GDK_PIXMAP_XID(pixmap->gobj()), width, height); |
|---|
| 306 | 297 | } |
|---|
| 307 | 298 | |
|---|
| 308 | 299 | // set the colormap |
|---|
| 309 | 300 | pixmap->set_colormap(colormap); |
|---|
| 310 | | program_log("xin set colormap of pixmap"); |
|---|
| 311 | 301 | |
|---|
| 312 | 302 | // get our pixbuf from the file |
|---|
| … | … | |
| 318 | 308 | } |
|---|
| 319 | 309 | |
|---|
| 320 | | program_log("xin loaded pixbuf from file %s", file.c_str()); |
|---|
| 321 | | |
|---|
| 322 | 310 | // apply the bg color to pixbuf here, because every make_ method would |
|---|
| 323 | 311 | // have to do it anyway. |
|---|
| … | … | |
| 353 | 341 | }; |
|---|
| 354 | 342 | |
|---|
| 355 | | program_log("xin made pixmap into appropriate size"); |
|---|
| 356 | | |
|---|
| 357 | 343 | // render it to the pixmap |
|---|
| 358 | 344 | pixmap->draw_pixbuf(gc_, outpixbuf, 0,0, tarx, tary, tarw, tarh, Gdk::RGB_DITHER_NONE,0,0); |
|---|
| 359 | | |
|---|
| 360 | | program_log("xin rendered pixbuf (%d x %d) onto pixmap (%d, %d and %d x %d)", |
|---|
| 361 | | outpixbuf->get_width(), outpixbuf->get_height(), tarx, tary, tarw, tarh); |
|---|
| 362 | 345 | |
|---|
| 363 | 346 | Pixmap xpm = GDK_PIXMAP_XID(pixmap->gobj()); |
|---|
| … | … | |
| 374 | 357 | XChangeProperty(xdisp, xwin, prop_esetroot, XA_PIXMAP, 32, PropModeReplace, (unsigned char *) &xpm, 1); |
|---|
| 375 | 358 | |
|---|
| 376 | | program_log("set _XROOTPMAP_ID and ESETROOT_PMAP_ID atoms to %x", xpm); |
|---|
| 377 | | |
|---|
| 378 | 359 | // set it gtk style |
|---|
| 379 | 360 | window->set_back_pixmap(pixmap, false); |
|---|
| 380 | 361 | window->clear(); |
|---|
| 381 | | |
|---|
| 382 | | program_log("set background pixmap of xin window %x", GDK_WINDOW_XWINDOW(window->gobj())); |
|---|
| 383 | 362 | |
|---|
| 384 | 363 | _display->close(); |
|---|