mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-24 21:37:30 -04:00
fix: error buffer position for gtk app in overview
This commit is contained in:
parent
806f077224
commit
6bde7d344d
1 changed files with 13 additions and 5 deletions
18
src/mango.c
18
src/mango.c
|
|
@ -6090,11 +6090,19 @@ void overview_backup_surface(Client *c) {
|
|||
return;
|
||||
}
|
||||
|
||||
struct wlr_box clip_box;
|
||||
clip_box.x = 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;
|
||||
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.y = 0;
|
||||
}
|
||||
|
||||
c->overview_scene_surface = c->scene_surface;
|
||||
wlr_scene_node_set_enabled(&c->scene_surface->node, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue