Go to file
nicm 0d1be2e328 Fix so that we work out the right pane from mouse events - we were doing
so too early, before the mouse event was necessarily valid, so could end
up using the pane from the previous mouse event, or the active pane.

It is important that we use the right pane now that different panes can
have different key tables (for copy mode).

Fixes problem reported by Greg Hurrell.
2016-11-24 13:46:50 +00:00
alerts.c Clear window alert flags after setting winlink alert flags, fixes problem 2016-11-01 09:07:18 +00:00
arguments.c Add static in window-*.c and move some internal functions out of tmux.h. 2016-10-11 13:21:59 +00:00
attributes.c Use snprintf for constructing attribute string, from Tim Ruehsen. 2012-03-17 21:45:25 +00:00
cfg.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
client.c Remove some dead code in cmd-move-window.c and make a load of local 2016-10-03 22:52:11 +00:00
cmd-attach-session.c Use the notify name string instead of going via an enum and change 2016-10-16 22:06:40 +00:00
cmd-bind-key.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-break-pane.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-capture-pane.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-choose-buffer.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-choose-client.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-choose-tree.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-clear-history.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-command-prompt.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-confirm-before.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-copy-mode.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-detach-client.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-display-message.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-display-panes.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-find-window.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-find.c The target validity check used window_pane_visible but that may be false 2016-11-16 00:24:03 +00:00
cmd-has-session.c Instead of setting up the default keys by building the key struct 2014-10-20 22:29:25 +00:00
cmd-if-shell.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-join-pane.c Use the notify name string instead of going via an enum and change 2016-10-16 22:06:40 +00:00
cmd-kill-pane.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-kill-server.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-kill-session.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-kill-window.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-list-buffers.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-list-clients.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-list-keys.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-list-panes.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-list-sessions.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-list-windows.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-list.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
cmd-load-buffer.c Buffer name can be NULL, check before strdup(). 2016-10-26 11:48:07 +00:00
cmd-lock-server.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-move-window.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-new-session.c Do not stop dragging when the wheel is pressed, from Artem Fokin. 2016-11-16 11:37:16 +00:00
cmd-new-window.c Use the notify name string instead of going via an enum and change 2016-10-16 22:06:40 +00:00
cmd-paste-buffer.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-pipe-pane.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-queue.c Give each item on queue a name for better logging. 2016-10-18 08:46:43 +00:00
cmd-refresh-client.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-rename-session.c Don't error if renaming a session to its current name, from shik dot 2016-11-16 11:41:17 +00:00
cmd-rename-window.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-resize-pane.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-respawn-pane.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-respawn-window.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-rotate-window.c rotate-window needs to unzoom, problem reported by Sean Haugh. 2016-11-14 16:27:12 +00:00
cmd-run-shell.c Apply the right fix for run -b, used the wrong diff before. 2016-11-12 19:05:53 +00:00
cmd-save-buffer.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-select-layout.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-select-pane.c The target validity check used window_pane_visible but that may be false 2016-11-16 00:24:03 +00:00
cmd-select-window.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-send-keys.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-send-prefix.c Make command exec functions return an enum rather than -1/0/1 values and 2012-07-11 07:10:15 +00:00
cmd-set-buffer.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-set-environment.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-set-hook.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-set-option.c Do not try to set the CHANGED flag on windows with no active pane, fixes 2016-11-04 18:56:25 +00:00
cmd-show-buffer.c Make command exec functions return an enum rather than -1/0/1 values and 2012-07-11 07:10:15 +00:00
cmd-show-environment.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-show-messages.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-show-options.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-source-file.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-split-window.c Use the notify name string instead of going via an enum and change 2016-10-16 22:06:40 +00:00
cmd-string.c Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling. 2016-10-14 22:14:22 +00:00
cmd-swap-pane.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-swap-window.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-switch-client.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-unbind-key.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd-wait-for.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
cmd.c Make an empty state on error rather than leaving something partially 2016-11-02 13:35:36 +00:00
colour.c Instead of representing colours in several different forms with various 2016-07-15 00:42:56 +00:00
control-notify.c Use the notify name string instead of going via an enum and change 2016-10-16 22:06:40 +00:00
control.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
environ.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
format.c Key running commands for #() by the unexpanded command, and run them 2016-11-17 10:06:08 +00:00
grid-view.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
grid.c Clear cell entry with grid_default_entry not grid_default_cell. 2016-10-18 19:52:49 +00:00
hooks.c Provide a way for hooks to tag formats onto the commands they fire so 2016-10-16 19:36:37 +00:00
input-keys.c Remove some dead code in cmd-move-window.c and make a load of local 2016-10-03 22:52:11 +00:00
input.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
job.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
key-bindings.c Fix so that we work out the right pane from mouse events - we were doing 2016-11-24 13:46:50 +00:00
key-string.c Error on invalid modifier keys. 2016-11-23 16:44:42 +00:00
layout-custom.c Use the notify name string instead of going via an enum and change 2016-10-16 22:06:40 +00:00
layout-set.c Some other stuff that can be local to one file. 2016-10-11 13:45:47 +00:00
layout.c Use the notify name string instead of going via an enum and change 2016-10-16 22:06:40 +00:00
log.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
Makefile Add hooks infrastructure, basic commands (set-hook, show-hooks) and a 2015-12-08 01:10:31 +00:00
mode-key.c Drop the edit mode key tables and just use fixed key bindings for the 2016-10-12 14:50:14 +00:00
names.c Add static in window-*.c and move some internal functions out of tmux.h. 2016-10-11 13:21:59 +00:00
notify.c Use notifys for alerts too. 2016-10-16 22:18:04 +00:00
options-table.c Remove the set-remain-on-exit option, it was always a hack and can now 2016-10-13 21:37:03 +00:00
options.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
paste.c Unused variable and missing time.h. 2016-10-12 09:07:58 +00:00
proc.c I no longer use my SourceForge address so replace it. 2016-01-19 15:59:12 +00:00
procname.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
resize.c Use the notify name string instead of going via an enum and change 2016-10-16 22:06:40 +00:00
screen-redraw.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
screen-write.c Zero dirty count after flushing. 2016-10-18 08:39:18 +00:00
screen.c Make the selection able to exist independent of the cursor position, so 2016-11-24 13:38:44 +00:00
server-client.c Fix so that we work out the right pane from mouse events - we were doing 2016-11-24 13:46:50 +00:00
server-fn.c Use the notify name string instead of going via an enum and change 2016-10-16 22:06:40 +00:00
server.c Do not execute commands for a client until it has identified, fixes 2016-11-12 19:04:41 +00:00
session.c Alerts are too slow, so rather than walking all sessions and windows, 2016-10-19 09:22:07 +00:00
signal.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
status.c Drop the edit mode key tables and just use fixed key bindings for the 2016-10-12 14:50:14 +00:00
style.c Instead of representing colours in several different forms with various 2016-07-15 00:42:56 +00:00
tmux.1 Make the selection able to exist independent of the cursor position, so 2016-11-24 13:38:44 +00:00
tmux.c Add static in window-*.c and move some internal functions out of tmux.h. 2016-10-11 13:21:59 +00:00
tmux.h Make the selection able to exist independent of the cursor position, so 2016-11-24 13:38:44 +00:00
tty-acs.c Remove some dead code in cmd-move-window.c and make a load of local 2016-10-03 22:52:11 +00:00
tty-keys.c Initial attempt to make use of left and right margins if the terminal 2016-11-15 14:02:32 +00:00
tty-term.c Loads more static, except for cmd-*.c and window-*.c. 2016-10-10 21:29:23 +00:00
tty.c Fix calculation of whether we need a region for drawing a cell (only if 2016-11-16 13:31:22 +00:00
utf8.c Support UTF-8 entry into the command prompt. 2016-10-11 07:11:40 +00:00
window-choose.c Mass rename struct cmd_q to struct cmdq_item and related. 2016-10-16 19:04:05 +00:00
window-clock.c Add support for BCE (background colour erase). This makes various escape 2016-10-13 20:27:27 +00:00
window-copy.c Make the selection able to exist independent of the cursor position, so 2016-11-24 13:38:44 +00:00
window.c Initialize modeprefix to 1 properly in window_pane_create, from Artem Fokin. 2016-11-16 09:22:16 +00:00
xmalloc.c Key running commands for #() by the unexpanded command, and run them 2016-11-17 10:06:08 +00:00
xmalloc.h Key running commands for #() by the unexpanded command, and run them 2016-11-17 10:06:08 +00:00
xterm-keys.c Remove some dead code in cmd-move-window.c and make a load of local 2016-10-03 22:52:11 +00:00