1314 |
} |
} |
1315 |
|
|
1316 |
static BOOL |
static BOOL |
1317 |
select_visual() |
select_visual(int screen_num) |
1318 |
{ |
{ |
1319 |
XPixmapFormatValues *pfm; |
XPixmapFormatValues *pfm; |
1320 |
int pixmap_formats_count, visuals_count; |
int pixmap_formats_count, visuals_count; |
1340 |
|
|
1341 |
/* Search for best TrueColor visual */ |
/* Search for best TrueColor visual */ |
1342 |
template.class = TrueColor; |
template.class = TrueColor; |
1343 |
vmatches = XGetVisualInfo(g_display, VisualClassMask, &template, &visuals_count); |
template.screen = screen_num; |
1344 |
|
vmatches = XGetVisualInfo(g_display, VisualClassMask | VisualScreenMask, &template, &visuals_count); |
1345 |
g_visual = NULL; |
g_visual = NULL; |
1346 |
g_no_translate_image = False; |
g_no_translate_image = False; |
1347 |
g_compatible_arch = False; |
g_compatible_arch = False; |
1546 |
g_screen = ScreenOfDisplay(g_display, screen_num); |
g_screen = ScreenOfDisplay(g_display, screen_num); |
1547 |
g_depth = DefaultDepthOfScreen(g_screen); |
g_depth = DefaultDepthOfScreen(g_screen); |
1548 |
|
|
1549 |
if (!select_visual()) |
if (!select_visual(screen_num)) |
1550 |
return False; |
return False; |
1551 |
|
|
1552 |
if (g_no_translate_image) |
if (g_no_translate_image) |
3474 |
} |
} |
3475 |
|
|
3476 |
|
|
3477 |
|
void |
3478 |
|
ui_seamless_destroy_group(unsigned long id, unsigned long flags) |
3479 |
|
{ |
3480 |
|
seamless_window *sw, *sw_next; |
3481 |
|
|
3482 |
|
if (!g_seamless_active) |
3483 |
|
return; |
3484 |
|
|
3485 |
|
for (sw = g_seamless_windows; sw; sw = sw_next) |
3486 |
|
{ |
3487 |
|
sw_next = sw->next; |
3488 |
|
|
3489 |
|
if (sw->group->id == id) |
3490 |
|
{ |
3491 |
|
XDestroyWindow(g_display, sw->wnd); |
3492 |
|
sw_remove_window(sw); |
3493 |
|
} |
3494 |
|
} |
3495 |
|
} |
3496 |
|
|
3497 |
|
|
3498 |
void |
void |
3499 |
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) |
3500 |
{ |
{ |