| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| * | wayland: xdg-toplevel-configure: check for stateless configure calls | Daniel Eklöf | 2020-01-02 | -8/+11 | |
| | | | | | | Ignore configure calls without state, instead of checking for width/height == 0. | ||||
| * | wayland: ignore early configure calls | Daniel Eklöf | 2020-01-02 | -3/+4 | |
| | | | | | | At this point, not everything has been setup and we crash when trying to convert the surface pointer to a terminal pointer. | ||||
| * | term: add visually focused attribute to terminal struct | Daniel Eklöf | 2020-01-02 | -4/+13 | |
| | | |||||
| * | wayland: rename focused/moused to kbd_focus/mouse_focus | Daniel Eklöf | 2020-01-02 | -2/+2 | |
| | | |||||
| * | wayland: warn when presentation timings have been requested but is not supported | Daniel Eklöf | 2020-01-01 | -0/+4 | |
| | | |||||
| * | wayland: only bind to 'presentation' interface if -p,--presentation-timings | Daniel Eklöf | 2019-12-31 | -8/+12 | |
| | | |||||
| * | wayland: remove empty line | Daniel Eklöf | 2019-12-31 | -1/+0 | |
| | | |||||
| * | wayland: make zxdg_output_v1_listener struct const | Daniel Eklöf | 2019-12-31 | -1/+1 | |
| | | |||||
| * | wayland: optionally use the presentation time protocol to measure input lag | Daniel Eklöf | 2019-12-31 | -0/+28 | |
| | | | | | | | | | | | | | | | | | | | | This adds a flag, -p,--presentation-timings, that enables input lag measuring using the presentation time Wayland protocol. When enabled, we store a timestamp when we *send* a key to the slave. Then, when we commit a frame for rendering to the compositor, we request presentation feedback. We also store a timestamp for when the frame was committed. The 'presented' callback then looks at the input and commit timestamps, and compares it with the presented timestamp. The delay is logged at INFO when the delay was less than one frame interval, at WARN when it was one frame interval, and at ERR when it was two or more frame intervals. We also update statistic counters that we log when foot is shut down. | ||||
| * | wayland: include more output (monitor) details in the log output | Daniel Eklöf | 2019-12-05 | -10/+22 | |
| | | |||||
| * | Add missing includes | Daniel Eklöf | 2019-12-01 | -0/+1 | |
| | | |||||
| * | wayland: track current xcursor, and don't update if same | Daniel Eklöf | 2019-11-30 | -0/+10 | |
| | | | | | | | | | | | | | | | | We may have many windows open, which tries to update/change the xcursor at various points. Track which cursor is currently loaded, regardless of which window it was set by. If someone tries to load that very same xcursor again, simply skip it. One example is when we've moused over a window that does *not* have keyboard focus, and then the user clicks, or by some other mean gives that window keyboard focus. In many cases it will then try to set the same cursor again (most of the times, the cursor is the same regardless of keyboard focus, but not always). | ||||
| * | wayland: terminal_from_surface: recognize scrollback search surfaces | Daniel Eklöf | 2019-11-29 | -1/+5 | |
| | | | | | | This fixes an assertion when hovering over the input field for scrollback searches. | ||||
| * | wayland: always flush after dispatching messages | Daniel Eklöf | 2019-11-29 | -1/+1 | |
| | | | | | This means we don't have to e.g. roundtrip when setting the cursor. | ||||
| * | terminal: use the 'text' xcursor pointer whenever selection is possible | Daniel Eklöf | 2019-11-28 | -30/+41 | |
| | | |||||
| * | wayland: calculate output PPI (pixels-per-inch) | Daniel Eklöf | 2019-11-26 | -3/+9 | |
| | | |||||
| * | wayland: change disconnected log type from err -> warn | Daniel Eklöf | 2019-11-23 | -1/+1 | |
| | | |||||
| * | tllist: is now an external "library", so use <> includes | Daniel Eklöf | 2019-11-17 | -1/+1 | |
| | | |||||
| * | wayland: verify xdg-output-manager interface version | Daniel Eklöf | 2019-11-03 | -1/+6 | |
| | | |||||
| * | wayland: verify server implements the required interface versions | Daniel Eklöf | 2019-11-03 | -18/+77 | |
| | | |||||
| * | Remove unneeded include | Daniel Eklöf | 2019-11-03 | -1/+0 | |
| | | |||||
| * | misc: fdm already logs failures | Daniel Eklöf | 2019-11-02 | -8/+3 | |
| | | |||||
| * | timerfd: read() returns -1 with errno == EAGAIN, not 0 | Daniel Eklöf | 2019-11-02 | -5/+3 | |
| | | | | | | | When there hasn't been a timeout (or in our case, there was a timeout, but we reset the timer before we got to the read()), read() returns, not 0, but -1 with errno == EAGAIN. | ||||
| * | timerfd: use non-blocking mode, fixes dead lock | Daniel Eklöf | 2019-11-02 | -1/+6 | |
| | | | | | | | | | | | | Since we cancel the timers every now and then, there's a (small) chance that one handler cancels a timer that has triggered in the same epoll() iteration. When this happens, read() blocks. Fix by making the timer FDs non-blocking, and simply returning when we read 0 bytes. | ||||
| * | wayland: wayl_win_destroy(): looks like we need another roundtrip | Daniel Eklöf | 2019-11-01 | -0/+2 | |
| | | |||||
| * | wayland: wayl_destroy(): destroy any remaining terminals | Daniel Eklöf | 2019-11-01 | -0/+9 | |
| | | |||||
| * | Don't use non-blocking FDs | Daniel Eklöf | 2019-11-01 | -14/+1 | |
| | | | | | | We use epoll() to determine when we can read/write FDs so there's absolutely no need for non-blocking. | ||||
| * | wayland: wayl_win_destroy(): unmap windows before destroying | Daniel Eklöf | 2019-11-01 | -0/+21 | |
| | | | | | | | | | | This will trigger e.d. keyboard_leave() and wl_pointer_leave() events, which ensures there aren't any references to the destroyed window from the global wayland struct. Call wl_display_roundtrip() to trigger those events *before* we destroy the window. | ||||
| * | wayland: wayl_init(): call wl_display_roundtrip() when done | Daniel Eklöf | 2019-11-01 | -2/+3 | |
| | | |||||
| * | wayland: fdm_del() now closes the FD | Daniel Eklöf | 2019-11-01 | -4/+3 | |
| | | |||||
| * | wayland: wayl_win_destroy(): return early if win == NULL | Daniel Eklöf | 2019-10-30 | -0/+3 | |
| | | |||||
| * | wayland: xdg_toplevel_close(): call term_shutdown() | Daniel Eklöf | 2019-10-30 | -3/+1 | |
| | | |||||
| * | wayland: track multiple terminals | Daniel Eklöf | 2019-10-30 | -7/+17 | |
| | | | | | | The wayland 'term' member is gone and replaced by a list, 'terms'. This list contains all currently running terminal (windows). | ||||
| * | wayland: move reload_cursor_theme() and update_cursor_surface() to wayland | Daniel Eklöf | 2019-10-27 | -3/+59 | |
| | | |||||
| * | wayland: backend now configures FD as non-blocking, not main | Daniel Eklöf | 2019-10-27 | -1/+15 | |
| | | |||||
| * | wayland: free wayland/wl_window instances | Daniel Eklöf | 2019-10-27 | -0/+3 | |
| | | |||||
| * | wayl_destroy: early return on NULL | Daniel Eklöf | 2019-10-27 | -0/+3 | |
| | | |||||
| * | wayland: move keyboard repeat handling into wayland | Daniel Eklöf | 2019-10-27 | -0/+39 | |
| | | |||||
| * | wayland: integrate directly with the FDM | Daniel Eklöf | 2019-10-27 | -1/+23 | |
| | | |||||
| * | wayland: implement wayl_init() | Daniel Eklöf | 2019-10-27 | -4/+514 | |
| | | | | | Wayland instantiation is now done by the wayland backend, not in main. | ||||
| * | wayland: change all wayland callbacks to take a wayland pointer | Daniel Eklöf | 2019-10-27 | -4/+21 | |
| | | | | | | Instead of passing the terminal to the wayland callbacks, pass a 'struct wayland' pointer. | ||||
| * | kbd: move into wayland | Daniel Eklöf | 2019-10-27 | -0/+11 | |
| | | |||||
| * | wayland: move clipboard/primary structs into the wayland struct | Daniel Eklöf | 2019-10-27 | -0/+11 | |
| | | | | | These are application global and very wayland specific | ||||
| * | wayland: implement wayl_win_destroy() | Daniel Eklöf | 2019-10-27 | -0/+24 | |
| | | |||||
| * | wayland: implement wayl_destroy() | Daniel Eklöf | 2019-10-27 | -0/+66 | |
