]> Dogcows Code - chaz/openbox/commitdiff
add comments explaining why we don't switch desktops immediately
authorDana Jansens <danakj@orodu.net>
Thu, 10 May 2007 16:51:59 +0000 (16:51 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 10 May 2007 16:51:59 +0000 (16:51 +0000)
openbox/action.c

index 5cc0bb213dd44debeefd1c0fc81063ec007b9acb..58952a1a8716cdc595a480a8eb96ec9928901e8d 100644 (file)
@@ -1545,6 +1545,9 @@ void action_desktop_dir(union ActionData *data)
                              data->desktopdir.inter.any.interactive,
                              data->desktopdir.inter.final,
                              data->desktopdir.inter.cancel);
+    /* only move the desktop when the action is complete. if we switch
+       desktops during the interactive action, focus will move but with
+       NotifyWhileGrabbed and applications don't like that. */
     if (!data->sendtodir.inter.any.interactive ||
         (data->sendtodir.inter.final && !data->sendtodir.inter.cancel))
     {
@@ -1564,6 +1567,9 @@ void action_send_to_desktop_dir(union ActionData *data)
                              data->sendtodir.inter.any.interactive,
                              data->sendtodir.inter.final,
                              data->sendtodir.inter.cancel);
+    /* only move the desktop when the action is complete. if we switch
+       desktops during the interactive action, focus will move but with
+       NotifyWhileGrabbed and applications don't like that. */
     if (!data->sendtodir.inter.any.interactive ||
         (data->sendtodir.inter.final && !data->sendtodir.inter.cancel))
     {
This page took 0.032204 seconds and 4 git commands to generate.