summaryrefslogtreecommitdiff
path: root/src/core/eventqueue.c
diff options
context:
space:
mode:
authorOwen W. Taylor <[email protected]>2015-08-20 13:58:07 +0200
committerinfirit <[email protected]>2015-08-20 14:29:12 +0200
commit37f2f987d777f7542bda97402cb092a4710db409 (patch)
tree3bdcc1bbaa0ce4a1ede61ef8cec1d4266720fdec /src/core/eventqueue.c
parentae7d0154803e6ff34379ca914d2177c4c6bb32aa (diff)
downloadmarco-37f2f987d777f7542bda97402cb092a4710db409.tar.bz2
marco-37f2f987d777f7542bda97402cb092a4710db409.tar.xz
Fix crash when struts change during grab operation
Since meta_workspace_invalidate_work_area() frees the edges workspace->screen_edges and workspace->monitor_edges, we must clean up our cached edge resistance data when the invalidate_work_area() is called on the active workspace, or when the workspace changes. Make the computation of the edge resistance data lazy so that it will be recomputed the next time we try to access it. meta_display_compute_resistance_and_snapping_edges() is made private to edge-resistance.c Invaliding the data when active workspace changes also will improve correctness for edge resistance when the current workspace changes during a grab operation. (Even with this fix we still don't try to handle window positions changing during a grab operation; that can't cause a crash since, unlike screen and monitor edges, the window edges are freshly allocated, it will just cause slight oddness in that corner case.) Root cause tracked down due to much effort by Jon Nettleton. https://bugzilla.gnome.org/show_bug.cgi?id=608800
Diffstat (limited to 'src/core/eventqueue.c')
0 files changed, 0 insertions, 0 deletions