mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-28 21:37:28 -04:00
fix: error buffer position for gtk app in overview
This commit is contained in:
parent
c2d84ce367
commit
ab520cf83b
1 changed files with 13 additions and 5 deletions
14
src/mango.c
14
src/mango.c
|
|
@ -6100,11 +6100,19 @@ void overview_backup_surface(Client *c) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlr_box clip_box;
|
struct wlr_box geometry;
|
||||||
|
client_get_geometry(c, &geometry);
|
||||||
|
struct wlr_box clip_box = (struct wlr_box){
|
||||||
|
.x = geometry.x,
|
||||||
|
.y = geometry.y,
|
||||||
|
.width = c->overview_backup_geom.width - 2 * config.borderpx,
|
||||||
|
.height = c->overview_backup_geom.height - 2 * config.borderpx,
|
||||||
|
};
|
||||||
|
|
||||||
|
if (client_is_x11(c)) {
|
||||||
clip_box.x = 0;
|
clip_box.x = 0;
|
||||||
clip_box.y = 0;
|
clip_box.y = 0;
|
||||||
clip_box.width = c->overview_backup_geom.width - 2 * config.borderpx;
|
}
|
||||||
clip_box.height = c->overview_backup_geom.height - 2 * config.borderpx;
|
|
||||||
|
|
||||||
c->overview_scene_surface = c->scene_surface;
|
c->overview_scene_surface = c->scene_surface;
|
||||||
wlr_scene_node_set_enabled(&c->scene_surface->node, true);
|
wlr_scene_node_set_enabled(&c->scene_surface->node, true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue