[metacity] frames: ignore event outside of frame in get_control
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] frames: ignore event outside of frame in get_control
- Date: Tue, 24 May 2016 11:03:34 +0000 (UTC)
commit c9fadf774e2f42d8f1036912be12dc2cdb9dad37
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue May 24 14:00:56 2016 +0300
frames: ignore event outside of frame in get_control
https://bugzilla.gnome.org/show_bug.cgi?id=436416
src/ui/frames.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index be51bf5..644fa51 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2756,6 +2756,9 @@ get_control (MetaFrames *frames,
meta_frames_calc_geometry (frames, frame, &fgeom);
get_client_rect (&fgeom, fgeom.width, fgeom.height, &client);
+ if (x < 0 || y < 0 || x > fgeom.width || y > fgeom.height)
+ return META_FRAME_CONTROL_NONE;
+
if (POINT_IN_RECT (x, y, client))
return META_FRAME_CONTROL_CLIENT_AREA;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]