Skip to content

Instantly share code, notes, and snippets.

View ThomasAdam's full-sized avatar
💭
Working on fvwm3

Thomas Adam ThomasAdam

💭
Working on fvwm3
View GitHub Profile
@ThomasAdam
ThomasAdam / gist:5d7d72fe8e1c4d9009b5
Created November 10, 2014 13:48
XSelectInput Override
#include <X11/Xlib.h>
#include <X11/Xutil.h>
/* Compile:
*
* Save this file as xsi_override.c, then:
*
* gcc -I /usr/include/X11 -L /usr/X11/lib -lX11 -Wall -fPIC -shared -o \
* xsi_override.so xsi_override.c -ldl
*
diff --git a/options-table.c b/options-table.c
index 8d680b3..a8413df 100644
--- a/options-table.c
+++ b/options-table.c
@@ -124,17 +124,6 @@ const struct options_table_entry session_options_table[] = {
.default_num = 0
},
- { .name = "bell-action",
- .type = OPTIONS_TABLE_CHOICE,
diff --git a/window.c b/window.c
index 1dd70c4..d54a6af 100644
--- a/window.c
+++ b/window.c
@@ -422,6 +422,9 @@ window_pane_active_lost(struct window_pane *wp, struct window_pane *nextwp)
{
struct layout_cell *lc, *lc2;
+ if (nextwp->layout_cell->parent == NULL)
+ return;
@ThomasAdam
ThomasAdam / gist:7126171
Created October 23, 2013 20:33
Don't allow clear-history to run if pane is in a mode
diff --git a/cmd-clear-history.c b/cmd-clear-history.c
index cce3ea1..8b16215 100644
--- a/cmd-clear-history.c
+++ b/cmd-clear-history.c
@@ -44,6 +44,10 @@ cmd_clear_history_exec(struct cmd *self, struct cmd_q *cmdq)
if (cmd_find_pane(cmdq, args_get(args, 't'), NULL, &wp) == NULL)
return (CMD_RETURN_ERROR);
+
+ if (wp->mode == &window_copy_mode)
diff --git a/cmd-new-session.c b/cmd-new-session.c
index 4eebe63..5765aee 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -35,8 +35,9 @@ enum cmd_retval cmd_new_session_exec(struct cmd *, struct cmd_q *);
const struct cmd_entry cmd_new_session_entry = {
"new-session", "new",
- "AdDF:n:Ps:t:x:y:", 0, 1,
- "[-AdDP] [-F format] [-n window-name] [-s session-name] "
diff --git a/client.c b/client.c
index 691ace3..f9c2244 100644
--- a/client.c
+++ b/client.c
@@ -402,6 +402,7 @@ client_signal(int sig, unused short events, unused void *data)
break;
case SIGWINCH:
client_write_server(MSG_RESIZE, NULL, 0);
+ log_debug("SIGWINCH: MSG_RESIZE message sent");
break;
diff --git a/client.c b/client.c
index 691ace3..f9c2244 100644
--- a/client.c
+++ b/client.c
@@ -402,6 +402,7 @@ client_signal(int sig, unused short events, unused void *data)
break;
case SIGWINCH:
client_write_server(MSG_RESIZE, NULL, 0);
+ log_debug("SIGWINCH: MSG_RESIZE message sent");
break;
diff --git a/client.c b/client.c
index 691ace3..f9c2244 100644
--- a/client.c
+++ b/client.c
@@ -402,6 +402,7 @@ client_signal(int sig, unused short events, unused void *data)
break;
case SIGWINCH:
client_write_server(MSG_RESIZE, NULL, 0);
+ log_debug("SIGWINCH: MSG_RESIZE message sent");
break;
diff --git a/client.c b/client.c
index 691ace3..f9c2244 100644
--- a/client.c
+++ b/client.c
@@ -402,6 +402,7 @@ client_signal(int sig, unused short events, unused void *data)
break;
case SIGWINCH:
client_write_server(MSG_RESIZE, NULL, 0);
+ log_debug("SIGWINCH: MSG_RESIZE message sent");
break;
diff --git a/client.c b/client.c
index 691ace3..f9c2244 100644
--- a/client.c
+++ b/client.c
@@ -402,6 +402,7 @@ client_signal(int sig, unused short events, unused void *data)
break;
case SIGWINCH:
client_write_server(MSG_RESIZE, NULL, 0);
+ log_debug("SIGWINCH: MSG_RESIZE message sent");
break;