Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tiling.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ export class Space extends Array {

const k = column.indexOf(grabWindow);
if (k < 0) {
throw new Error(`Anchor doesn't exist in column ${grabWindow.title}`);
throw new Error(`Anchor doesn't exist in column ${grabWindow ? grabWindow.title : "unknown"}`);
}

const gap = Settings.prefs.window_gap;
Expand Down Expand Up @@ -741,7 +741,7 @@ export class Space extends Array {

let resultingWidth, relayout;
let allocator = allocators && allocators[i];
if (inGrab && column.includes(inGrab.window) && !allocator) {
if (inGrab && selectedInColumn && column.includes(inGrab.window) && !allocator) {
[resultingWidth, relayout] =
this.layoutGrabColumn(column, x, y0, targetWidth, availableHeight, time,
selectedInColumn);
Expand Down
10 changes: 10 additions & 0 deletions vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
environment.systemPackages = with pkgs;
[ paperwm
(lib.getBin libinput)
chromium
];

### Set graphical session to auto-login GNOME
Expand Down Expand Up @@ -33,6 +34,15 @@
];
};

#imports = [ <nixpkgs/nixos/modules/virtualisation/qemu-vm.nix> ];
#virtualisation.qemu.options = [
# "-device qxl"
#];
services.xserver.videoDrivers = [ "qxl" ];
virtualisation.qemu.options = [ "-vga qxl" ];
virtualisation.memorySize = 8192;
virtualisation.cores = 8;

### Remove unnecessary dependencies
#NOTE: This drops many GTK4 apps, re-enable if needed for testing.
services.gnome.core-utilities.enable = false;
Expand Down