Fix crash on unexpected NET_WM_MOVERESIZE_CANCEL messages (#827800)
- Make sub-packages for gdm-control and gnome-panel-control (#750056)epel9
parent
1629d4a4f9
commit
27ac831049
@ -0,0 +1,28 @@
|
||||
From 339c19d1b3a7a5139aed8b59bad755ddd0e518ff Mon Sep 17 00:00:00 2001
|
||||
From: Mikael Magnusson <mikachu@gmail.com>
|
||||
Date: Sun, 3 Jun 2012 20:18:48 +0200
|
||||
Subject: [PATCH] Fix crash on unexpected NET_WM_MOVERESIZE_CANCEL messages
|
||||
|
||||
gtk+ 3.4 apparently sends these randomly when you select text in a
|
||||
GtkEntry. This also fixes bug #5460.
|
||||
---
|
||||
openbox/event.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/openbox/event.c b/openbox/event.c
|
||||
index b9ec1c5..4d091bf 100644
|
||||
--- a/openbox/event.c
|
||||
+++ b/openbox/event.c
|
||||
@@ -1495,7 +1495,8 @@ static void event_handle_client(ObClient *client, XEvent *e)
|
||||
}
|
||||
else if ((Atom)e->xclient.data.l[2] ==
|
||||
OBT_PROP_ATOM(NET_WM_MOVERESIZE_CANCEL))
|
||||
- moveresize_end(TRUE);
|
||||
+ if (moveresize_client)
|
||||
+ moveresize_end(TRUE);
|
||||
} else if (msgtype == OBT_PROP_ATOM(NET_MOVERESIZE_WINDOW)) {
|
||||
gint ograv, x, y, w, h;
|
||||
|
||||
--
|
||||
1.7.10
|
||||
|
Loading…
Reference in new issue