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.
This commit is contained in:
parent
4195eafdb6
commit
58f666a2a5
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue