[metacity/gnome-3-18] 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/gnome-3-18] frames: ignore event outside of frame in	get_control
- Date: Tue, 24 May 2016 11:04:23 +0000 (UTC)
commit 072f77b4da0e3f9bcd3776ef80f09c5aa0d341d0
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 c612460..4089090 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2819,6 +2819,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]