static Popup *popup = NULL;
-static void client_dest(ObClient *c)
+static void client_dest(gpointer client)
{
- if (moveresize_client == c)
+ if (moveresize_client == client)
moveresize_end(TRUE);
}
-void moveresize_startup()
+void moveresize_startup(gboolean reconfig)
{
popup = popup_new(FALSE);
- client_add_destructor(client_dest);
+ if (!reconfig)
+ client_add_destructor(client_dest);
}
-void moveresize_shutdown()
+void moveresize_shutdown(gboolean reconfig)
{
- client_remove_destructor(client_dest);
+ if (!reconfig)
+ client_remove_destructor(client_dest);
popup_free(popup);
popup = NULL;
void moveresize_end(gboolean cancel)
{
grab_keyboard(FALSE);
- grab_pointer(FALSE, None);
+ grab_pointer(FALSE, OB_CURSOR_NONE);
popup_hide(popup);