242 |
break; \ |
break; \ |
243 |
case 1: /* Filled */ \ |
case 1: /* Filled */ \ |
244 |
XFillArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \ |
XFillArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \ |
245 |
ON_ALL_SEAMLESS_WINDOWS(XCopyArea, (g_display, g_ownbackstore ? g_backstore : g_wnd, sw->wnd, g_gc, \ |
ON_ALL_SEAMLESS_WINDOWS(XFillArc, (g_display, sw->wnd, g_gc, x-sw->xoffset, y-sw->yoffset, cx, cy, 0, 360*64)); \ |
|
x, y, cx, cy, x-sw->xoffset, y-sw->yoffset)); \ |
|
246 |
if (g_ownbackstore) \ |
if (g_ownbackstore) \ |
247 |
XFillArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \ |
XFillArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \ |
248 |
break; \ |
break; \ |
1313 |
} |
} |
1314 |
|
|
1315 |
static BOOL |
static BOOL |
1316 |
select_visual() |
select_visual(int screen_num) |
1317 |
{ |
{ |
1318 |
XPixmapFormatValues *pfm; |
XPixmapFormatValues *pfm; |
1319 |
int pixmap_formats_count, visuals_count; |
int pixmap_formats_count, visuals_count; |
1324 |
|
|
1325 |
red_weight = blue_weight = green_weight = 0; |
red_weight = blue_weight = green_weight = 0; |
1326 |
|
|
1327 |
|
if (g_server_depth == -1) |
1328 |
|
{ |
1329 |
|
g_server_depth = DisplayPlanes(g_display, DefaultScreen(g_display)); |
1330 |
|
} |
1331 |
|
|
1332 |
pfm = XListPixmapFormats(g_display, &pixmap_formats_count); |
pfm = XListPixmapFormats(g_display, &pixmap_formats_count); |
1333 |
if (pfm == NULL) |
if (pfm == NULL) |
1334 |
{ |
{ |
1339 |
|
|
1340 |
/* Search for best TrueColor visual */ |
/* Search for best TrueColor visual */ |
1341 |
template.class = TrueColor; |
template.class = TrueColor; |
1342 |
vmatches = XGetVisualInfo(g_display, VisualClassMask, &template, &visuals_count); |
template.screen = screen_num; |
1343 |
|
vmatches = XGetVisualInfo(g_display, VisualClassMask | VisualScreenMask, &template, &visuals_count); |
1344 |
g_visual = NULL; |
g_visual = NULL; |
1345 |
g_no_translate_image = False; |
g_no_translate_image = False; |
1346 |
g_compatible_arch = False; |
g_compatible_arch = False; |
1545 |
g_screen = ScreenOfDisplay(g_display, screen_num); |
g_screen = ScreenOfDisplay(g_display, screen_num); |
1546 |
g_depth = DefaultDepthOfScreen(g_screen); |
g_depth = DefaultDepthOfScreen(g_screen); |
1547 |
|
|
1548 |
if (!select_visual()) |
if (!select_visual(screen_num)) |
1549 |
return False; |
return False; |
1550 |
|
|
1551 |
if (g_no_translate_image) |
if (g_no_translate_image) |
3473 |
} |
} |
3474 |
|
|
3475 |
|
|
3476 |
|
void |
3477 |
|
ui_seamless_destroy_group(unsigned long id, unsigned long flags) |
3478 |
|
{ |
3479 |
|
seamless_window *sw, *sw_next; |
3480 |
|
|
3481 |
|
if (!g_seamless_active) |
3482 |
|
return; |
3483 |
|
|
3484 |
|
for (sw = g_seamless_windows; sw; sw = sw_next) |
3485 |
|
{ |
3486 |
|
sw_next = sw->next; |
3487 |
|
|
3488 |
|
if (sw->group->id == id) |
3489 |
|
{ |
3490 |
|
XDestroyWindow(g_display, sw->wnd); |
3491 |
|
sw_remove_window(sw); |
3492 |
|
} |
3493 |
|
} |
3494 |
|
} |
3495 |
|
|
3496 |
|
|
3497 |
void |
void |
3498 |
ui_seamless_move_window(unsigned long id, int x, int y, int width, int height, unsigned long flags) |
ui_seamless_move_window(unsigned long id, int x, int y, int width, int height, unsigned long flags) |
3499 |
{ |
{ |