From 1b73a296464546f7dc58f2a753d13042a94337b0 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 23 Apr 2013 22:29:58 +0200 Subject: Constrain the moveresize popup to the monitor which has the client --- openbox/moveresize.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbox/moveresize.c') diff --git a/openbox/moveresize.c b/openbox/moveresize.c index 2d0dc3ac..333a1bea 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -83,6 +83,8 @@ static void client_dest(ObClient *client, gpointer data) { if (moveresize_client == client) moveresize_end(TRUE); + if (popup && client == popup->client) + popup->client = NULL; } void moveresize_startup(gboolean reconfig) @@ -167,6 +169,7 @@ static void popup_coords(ObClient *c, const gchar *format, gint a, gint b) popup_position(popup, gravity, x, y); } + popup->client = c; popup_show(popup, text); g_free(text); } @@ -312,6 +315,7 @@ void moveresize_end(gboolean cancel) ungrab_pointer(); popup_hide(popup); + popup->client = NULL; if (!moving) { #ifdef SYNC -- cgit v1.2.3