summaryrefslogtreecommitdiffstats
path: root/server-client.c
AgeCommit message (Collapse)Author
2020-02-19Merge branch 'obsd-master'Thomas Adam
2020-02-19A few fixes to make modifier keys and dragging work - need to remove thenicm
modifiers before checking for the dragging marker key, and apply them before looking up the end key. Also fix key-to-string with modifiers for special keys.
2020-02-11Merge branch 'obsd-master'Thomas Adam
2020-02-11Remove unused variables from Ben Boeckel, and a Pp from jmc.nicm
2020-01-28Merge branch 'obsd-master'Thomas Adam
2020-01-28Add a define for flags meaning a client is not attached, and fixnicm
unattached counter, reported by Thomas Sattler.
2019-12-16Merge branch 'obsd-master'Thomas Adam
2019-12-16If /dev/fd/X is a symlink and realpath() expands symlinks, /dev/fd/Xnicm
ends up pointing to the wrong place before it is passed to the client. The path is only used internally so there is no real need for realpath(), remove it and move the get_path function to file.c where all the callers are.
2019-12-16Instead of using large buffers in imsgs, add the data or path onto the end.nicm
2019-12-12Merge branch 'obsd-master'Thomas Adam
2019-12-12Rewrite the code for reading and writing files. Now, if the client isnicm
not attached, the server process asks it to open the file, similar to how works for stdin, stdout, stderr. This makes special files like /dev/fd/X work (used by some shells). stdin, stdout and stderr and control mode are now just special cases of the same mechanism. This will also make it easier to use for other commands that read files such as source-file.
2019-12-03Merge branch 'obsd-master'Thomas Adam
2019-12-03Style nits in function arguments.nicm
2019-11-28Revert "add missing definition"Nicholas Marriott
This reverts commit 743939ec84f4652f1d3288e70a4c1aca327a0e07.
2019-11-28add missing definitionThomas Adam
2019-11-28Fix bad merge.Nicholas Marriott
2019-11-28Merge branch 'obsd-master'Thomas Adam
2019-11-28Long lines and spacing fixes.nicm
2019-11-28Make a best effort to set xpixel and ypixel for each pane and addnicm
formats for them.
2019-11-01Merge branch 'obsd-master'Thomas Adam
2019-11-01Limit lazy resize to panes in attached sessions only - those innicm
unattached are likely to have been resized by something like split-window where the user probably wants the resize to happen immediately. GitHub issue 1963.
2019-09-19Merge branch 'obsd-master'Thomas Adam
2019-09-19Add a "latest" window-size option which tries to size windows based onnicm
the most recently used client. From Tommie Gannert in GitHub issue 1869 based on earlier changes from me.
2019-08-28Merge branch 'obsd-master'Thomas Adam
2019-08-28The resize event was never deciding to actually resize the pane if therenicm
was output in the pane faster than the timer would fire, so change how it works to only defer the timer again if the pane was actually resized within the last timer period. Reported by James Tai in GitHub issue 1880.
2019-07-17Merge branch 'obsd-master'Thomas Adam
2019-07-17Clear overlay on normal key press.nicm
2019-07-06Merge branch 'obsd-master'Thomas Adam
2019-07-06Correctly adjust mouse position if the status line is at the top andnicm
more than one line. GitHub issue 1822.
2019-07-02Merge branch 'obsd-master'Thomas Adam
2019-07-02Command prompt key presses need to avoid the command queue, GitHub issuenicm
1817. Also a tmux.1 fix from jmc.
2019-06-26Merge branch 'obsd-master'Thomas Adam
2019-06-26Pass keys that aren't 0-9 on to normal key processing when display-panesnicm
is active (restores previous behaviour).
2019-06-20Merge branch 'obsd-master'Thomas Adam
2019-06-20Need to always check focus even if not current window.nicm
2019-06-20Merge branch 'obsd-master'Thomas Adam
2019-06-20Expand command formats in %if and move the config file loading later (tonicm
when the first client has identified) so all the client formats are available, fixes problems reported by Thomas Sattler.
2019-06-11Merge branch 'obsd-master'Thomas Adam
2019-06-11Do not resize panes unless they are in an attached, active window. Fromnicm
Morten M Neergaard in GitHub issue 1782.
2019-06-07Merge branch 'obsd-master'Thomas Adam
2019-06-07Do not load the config file if the server is exiting because it failednicm
to start, otherwise commands like lsk which start the server again can end up looping infinitely. Also make the first client exit correctly. Problem reported by Wael M Nasreddine.
2019-05-25Merge branch 'obsd-master'Thomas Adam
2019-05-25Merge cmd_list_parse into cmd-parse.y so it can use the new aliasnicm
processing code.
2019-05-20Merge branch 'obsd-master'Thomas Adam
2019-05-20Replace the various identical error callbacks with a single one in cmd-queue.c.nicm
2019-05-12Merge branch 'obsd-master'Thomas Adam
2019-05-12Fix some indentation and dead assignments.nicm
2019-05-08Merge branch 'obsd-master'Thomas Adam
2019-05-08Add a flag to redraw only the overlay, and remove the overlay on resize.nicm
2019-05-07Merge branch 'obsd-master'Thomas Adam