diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2013-04-23 22:29:58 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2013-06-07 08:40:52 +0200 |
| commit | 1b73a296464546f7dc58f2a753d13042a94337b0 (patch) | |
| tree | 429646308f78bb800d72323ad117ba22b350bd05 /openbox/moveresize.c | |
| parent | 8be9cc92b6daa87a5dcb854d5e0c34b3e4f98e59 (diff) | |
Constrain the moveresize popup to the monitor which has the client
Diffstat (limited to 'openbox/moveresize.c')
| -rw-r--r-- | openbox/moveresize.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
