add comments explaining why we don't switch desktops immediately
This commit is contained in:
parent
6ff520d02a
commit
f3424ddd3b
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue