diff options
| author | Simeon Simeonov | 2020-04-08 21:19:40 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2020-04-08 21:19:40 +0200 |
| commit | 406221dc8d42a6beda5aca96dd7d668751e53635 (patch) | |
| tree | 8beef75bc0b0ffe9e2b86abd631d3a9837833b56 /x11-terms/sakura/files/sakura-3.7.0-single-tab.patch | |
Initial release based on sgs' private overlay
Diffstat (limited to 'x11-terms/sakura/files/sakura-3.7.0-single-tab.patch')
| -rw-r--r-- | x11-terms/sakura/files/sakura-3.7.0-single-tab.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-terms/sakura/files/sakura-3.7.0-single-tab.patch b/x11-terms/sakura/files/sakura-3.7.0-single-tab.patch new file mode 100644 index 0000000..ddd0cec --- /dev/null +++ b/x11-terms/sakura/files/sakura-3.7.0-single-tab.patch | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | diff -rupN sakura-3.7.0.old/src/sakura.c sakura-3.7.0/src/sakura.c | ||
| 2 | --- sakura-3.7.0.old/src/sakura.c 2019-08-12 23:13:08.000000000 +0200 | ||
| 3 | +++ sakura-3.7.0/src/sakura.c 2019-12-01 20:21:29.067142517 +0100 | ||
| 4 | @@ -511,6 +511,9 @@ sakura_key_press (GtkWidget *widget, Gdk | ||
| 5 | if ( ((event->state & sakura.switch_tab_accelerator) == sakura.switch_tab_accelerator) && | ||
| 6 | ((event->state & sakura.move_tab_accelerator) != sakura.move_tab_accelerator) ) { | ||
| 7 | |||
| 8 | + /* Just propagate the event if there is only one tab */ | ||
| 9 | + if(npages < 2) return FALSE; | ||
| 10 | + | ||
| 11 | if ((keycode>=sakura_tokeycode(GDK_KEY_1)) && (keycode<=sakura_tokeycode( GDK_KEY_9))) { | ||
| 12 | |||
| 13 | /* User has explicitly disabled this branch, make sure to propagate the event */ | ||
