We only replace windows with clones when their position isn't possible, ie. when
they're less than 75 pixels inside the space, they're maximized or fullescreen.
The clickoverlays is now mostly decoupled from the visible status of the window
actor. They now always target the first window with an edge outside the
monitor. The width however is limited to 75 pixels (unless the window isn't
visible) making eg. drag and drop and drop possible while edge clicking will
never send input to the window.
The clickoverlays will now also span the window gap which makes it possible to
click on windows that's just off the monitor.
Invoking `app.open_new_window` on gnome-terminal does not inherit $PWD. We want
that so take matter into our own hands.
Note: vte.sh must be sourced in the terminal's shell.
Other approaches:
Write a custom .desktop file where "Exec" is a custom script (Note that it's
probably not possible to call the dbus action using dbus-send or qdbus due to
the argument structure)
I tried to use the dbus interface directly from js too, but it seems basically
impossible to call correctly..
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
Gio.DBus.session.call(
metaWindow.gtk_unique_bus_name,
metaWindow.gtk_window_object_path,
"org.gtk.Actions",
"Activate",
GLib.Variant.new_tuple([
new GLib.Variant("s", "new-terminal"),
GLib.Variant.new_array(null,
[new GLib.Variant('(ss)', ["window", "current"])]),
GLib.Variant.new_array(new GLib.VariantType("{sv}"), [])
]),
null, Gio.DBusCallFlags.NONE, -1, null,
(conn, result) => {}
);
Complains about wrong type - wants the first array to be "av", not "a(ss)", but
I don't know how to create a "opaque" variant..
Keywords: current directory
The primary symptom is that the wrong window is focused next when the current
window is closed. Most easily triggered by quickly letting <super> go when
navigation to the window (from far away).
I'm not sure why the fixStack call was conditioned in the first place?
Probably regression after: 8d3ae51728
Hide the label at space construction. Update and show the label when before we
start looking at the workspace mru stack.
Also use the position of the menu label relative to the panelbox, to support
placing the workspace menu in eg. the center.
Haven't looked at restoration at disable, but this will at least restore things
on restart.
Also remove killKeybinding and restoreKeybindings as they worked out really
badly.
Fixes the behavior of closing the last window in a workspace, where the
selection highlight would hang around. Navigating away from the workspace would
leave an empty minimap and require another keypress to make the intended action.