Mitchell Hashimoto
00c02e88d2
apprt/gtk: remove Window from Surface, use container only
2023-11-30 21:44:16 -08:00
Mitchell Hashimoto
d65a804edd
apprt/gtk: working on some reorg
2023-11-30 21:44:16 -08:00
Thorsten Ball
8cfa9297bf
gtk: rework surface title buffer handling
2023-11-30 21:44:16 -08:00
Thorsten Ball
ba2992d4d0
gtk: remove fields on Paned we don't need
2023-11-30 21:44:16 -08:00
Thorsten Ball
09bbaa82b4
gtk: comment out detach-tab feature after breaking it
2023-11-30 21:44:16 -08:00
Thorsten Ball
7cad9a253e
gtk: use destructuring syntax
2023-11-30 21:44:16 -08:00
Thorsten Ball
290b79ad62
gtk: restore "inherit working directory" behavior
2023-11-30 21:44:16 -08:00
Thorsten Ball
b60133fd34
gtk: keep buffer of surface title, update if focused
2023-11-30 21:44:15 -08:00
Thorsten Ball
b1e3685664
gtk: find first surface to focus on if sibling is Paned
2023-11-30 21:44:04 -08:00
Thorsten Ball
f1e81563d9
gtk: always remember focused surface before grabbing focus
2023-11-30 21:44:04 -08:00
Thorsten Ball
a1fb74d8aa
gtk: rework naming conflict after rebase
2023-11-30 21:44:03 -08:00
Thorsten Ball
ab93579bf6
gtk: port new-tab behavior over after rebase and refactor
...
This is the new behavior from #776 .
2023-11-30 21:43:39 -08:00
Thorsten Ball
8c58bf222d
gtk: move logic of splitting surface in a tab to Tab
2023-11-30 21:43:39 -08:00
Thorsten Ball
633a3e2e85
gtk: remove duplication of new surface creation
2023-11-30 21:43:39 -08:00
Thorsten Ball
eed2bb3078
gtk: refactor code and add comments to Paned
2023-11-30 21:43:39 -08:00
Thorsten Ball
fde6289880
gtk: rename and refactor Tab.deinit
2023-11-30 21:43:39 -08:00
Thorsten Ball
34e4261210
gtk: refactor the Paned deinit method
2023-11-30 21:43:39 -08:00
Thorsten Ball
adba77c3f9
gtk: fix warning when replacing children of Paned
2023-11-30 21:43:39 -08:00
Thorsten Ball
d88c29377b
gtk: use deinit method on Paned consistently
2023-11-30 21:43:39 -08:00
Thorsten Ball
77b8e3c956
gtk: move helper function around
2023-11-30 21:43:39 -08:00
Thorsten Ball
aaa6ff8884
gtk: introduce helper method on Paned
2023-11-30 21:43:39 -08:00
Thorsten Ball
dc0f6e3a5b
WIP: gtk: handle split surfaces when closing tab/window
2023-11-30 21:43:38 -08:00
Thorsten Ball
a7717289eb
gtk: fix tab settings after introducing *Tab
2023-11-30 21:43:38 -08:00
Thorsten Ball
790cd84203
gtk: refator Parent/Tab/Paned and how they interact
2023-11-30 21:43:38 -08:00
Thorsten Ball
9ddf097a03
gtk: Refactor how a new split is created
2023-11-30 21:43:38 -08:00
Thorsten Ball
de7cbb602f
gtk: refactor replacing child of Paned
2023-11-30 21:43:38 -08:00
Thorsten Ball
0add9de0eb
gtk: handle closing of surfaces with sibling being a Paned
2023-11-30 21:43:38 -08:00
Thorsten Ball
142a2f4cb0
gtk: refactor how Paned is created
2023-11-30 21:43:38 -08:00
Thorsten Ball
19f7b37bb3
gtk: move Child/Parent/Position into same file
2023-11-30 21:43:38 -08:00
Thorsten Ball
be836bc777
gtk: allow closing split panes that have been split
2023-11-30 21:43:38 -08:00
Thorsten Ball
5e789bf152
gtk: allow splitting when already split
2023-11-30 21:43:38 -08:00
Thorsten Ball
2ed841145b
gtk: take direction into account when creating a new split
2023-11-30 21:43:38 -08:00
Thorsten Ball
a50fc7bc50
gtk: use unreachable
in switch statements
2023-11-30 21:43:38 -08:00
Thorsten Ball
8afcce666a
gtk: wire up close-tab button
2023-11-30 21:43:38 -08:00
Thorsten Ball
98a5016598
gtk: simplify code when creating new split
2023-11-30 21:43:38 -08:00
Thorsten Ball
601eed24c4
gtk: remove code comments and dead code
2023-11-30 21:43:38 -08:00
Thorsten Ball
2d7a81c0db
gtk: cleanup code in *Paned
2023-11-30 21:43:38 -08:00
Thorsten Ball
d88898fc61
gtk: get 1st version of GTK splits working
2023-11-30 21:43:37 -08:00
Nathan Fisher
aba1b85503
Add Parent
and Child
types for tracking splits; Add methods for
...
adding start and end children in `Paned` widget;
2023-11-30 21:41:34 -08:00
Nathan Fisher
5b5c2c9ab2
Fill out the rest of Tab.init()
2023-11-30 21:41:34 -08:00
Nathan Fisher
1b16c2dd23
Add to Tab.init and fix compilation errors
2023-11-30 21:41:34 -08:00
Nathan Fisher
5c0b668517
Begin working on a skeleton for splits in Linux/Gtk
2023-11-30 21:41:34 -08:00
Mitchell Hashimoto
3919530a09
Merge pull request #969 from vancluever/vancluever-fix-x11-window-class
...
gtk: make sure WM_CLASS is being set on X11
2023-11-30 21:40:53 -08:00
Chris Marchesi
1832401e0e
gtk: make sure WM_CLASS is being set on X11
...
This ensures that WM_CLASS is being set on X11, looks like this was
missed in #816 (not 100% sure if it always needs to be set in GDK or if
it's a side effect of us not using g_application_run).
This also adds the "x11-instance-name" config attribute to control the
instance name, which defaults to "ghostty" (or "ghostty-debug" on debug
builds).
2023-11-30 20:26:12 -08:00
Mitchell Hashimoto
f974a6f55d
Merge pull request #953 from der-teufel-programming/update_once_more
...
Update to latest master
2023-11-30 14:17:46 -08:00
Mitchell Hashimoto
2d8620e47e
nix: update cache hash
2023-11-30 14:07:14 -08:00
Mitchell Hashimoto
8f5f8fb0bd
update Zig version in Nix
2023-11-30 14:06:24 -08:00
Krzysztof Wolicki
073868888c
Fix forgotten openIterableDir
2023-11-30 22:04:34 +01:00
Krzysztof Wolicki
9238bdb4da
Fix src/Surface.zig
...
Change fastmem.copy to use memcpy builtin
2023-11-30 21:58:14 +01:00
Krzysztof Wolicki
bfc688e96e
Update required zig version to 0.12.0-dev.1767+1e42a3de8
2023-11-30 21:41:42 +01:00