action_unshow_desktop,
NULL
},
+ {
+ "desktoplast",
+ action_desktop_last,
+ NULL
+ },
{
"restart",
action_restart,
screen_set_desktop(d);
}
+void action_desktop_last(union ActionData *data)
+{
+ screen_set_desktop(screen_last_desktop);
+}
+
void action_toggle_decorations(union ActionData *data)
{
ObClient *c = data->client.any.c;
void action_desktop(union ActionData *data);
/* DesktopDirection */
void action_desktop_dir(union ActionData *data);
+/* Any */
+void action_desktop_last(union ActionData *data);
/* ClientAction */
void action_toggle_decorations(union ActionData *data);
/* MoveResize */
guint screen_num_desktops;
guint screen_num_monitors;
guint screen_desktop;
+guint screen_last_desktop;
Size screen_physical_size;
gboolean screen_showing_desktop;
DesktopLayout screen_desktop_layout;
if (old == num) return;
+ screen_last_desktop = old;
+
ob_debug("Moving to desktop %d\n", num+1);
/* show windows before hiding the rest to lessen the enter/leave events */
extern guint screen_num_monitors;
/*! The current desktop */
extern guint screen_desktop;
+/*! The desktop which was last visible */
+extern guint screen_last_desktop;
/*! Are we in showing-desktop mode? */
extern gboolean screen_showing_desktop;
/*! The support window also used for focus and stacking */