blob: f0180b0d235ffb873cf5a75b2549fd7e2b3a2181 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- a/src/view/layer-shell/layer-shell.cpp
+++ b/src/view/layer-shell/layer-shell.cpp
@@ -97,15 +97,14 @@
/* Functions which are further specialized for the different shells */
void move(int x, int y)
{
- wf::region_t damage = last_bounding_box;
+ wf::scene::damage_node(get_root_node(), last_bounding_box);
surface_root_node->set_offset({(double)x, (double)y});
this->geometry.x = x;
this->geometry.y = y;
last_bounding_box = get_bounding_box();
- damage |= last_bounding_box;
wf::scene::damage_node(get_root_node(), last_bounding_box);
wf::scene::update(get_root_node(), wf::scene::update_flag::GEOMETRY);
}
|