aboutsummaryrefslogtreecommitdiff
path: root/wayland.c (follow)
Commit message (Collapse)AuthorAgeLines
* wayland: terminal_from_surface: recognize scrollback search surfacesDaniel Eklöf2019-11-29-1/+5
| | | | | This fixes an assertion when hovering over the input field for scrollback searches.
* wayland: always flush after dispatching messagesDaniel Eklöf2019-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 possibleDaniel Eklöf2019-11-28-30/+41
|
* wayland: calculate output PPI (pixels-per-inch)Daniel Eklöf2019-11-26-3/+9
|
* wayland: change disconnected log type from err -> warnDaniel Eklöf2019-11-23-1/+1
|
* tllist: is now an external "library", so use <> includesDaniel Eklöf2019-11-17-1/+1
|
* wayland: verify xdg-output-manager interface versionDaniel Eklöf2019-11-03-1/+6
|
* wayland: verify server implements the required interface versionsDaniel Eklöf2019-11-03-18/+77
|
* Remove unneeded includeDaniel Eklöf2019-11-03-1/+0
|
* misc: fdm already logs failuresDaniel Eklöf2019-11-02-8/+3
|
* timerfd: read() returns -1 with errno == EAGAIN, not 0Daniel Eklöf2019-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 lockDaniel Eklöf2019-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 roundtripDaniel Eklöf2019-11-01-0/+2
|
* wayland: wayl_destroy(): destroy any remaining terminalsDaniel Eklöf2019-11-01-0/+9
|
* Don't use non-blocking FDsDaniel Eklöf2019-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 destroyingDaniel Eklöf2019-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 doneDaniel Eklöf2019-11-01-2/+3
|
* wayland: fdm_del() now closes the FDDaniel Eklöf2019-11-01-4/+3
|
* wayland: wayl_win_destroy(): return early if win == NULLDaniel Eklöf2019-10-30-0/+3
|
* wayland: xdg_toplevel_close(): call term_shutdown()Daniel Eklöf2019-10-30-3/+1
|
* wayland: track multiple terminalsDaniel Eklöf2019-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 waylandDaniel Eklöf2019-10-27-3/+59
|
* wayland: backend now configures FD as non-blocking, not mainDaniel Eklöf2019-10-27-1/+15
|
* wayland: free wayland/wl_window instancesDaniel Eklöf2019-10-27-0/+3
|
* wayl_destroy: early return on NULLDaniel Eklöf2019-10-27-0/+3
|
* wayland: move keyboard repeat handling into waylandDaniel Eklöf2019-10-27-0/+39
|
* wayland: integrate directly with the FDMDaniel Eklöf2019-10-27-1/+23
|
* wayland: implement wayl_init()Daniel Eklöf2019-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 pointerDaniel Eklöf2019-10-27-4/+21
| | | | | Instead of passing the terminal to the wayland callbacks, pass a 'struct wayland' pointer.
* kbd: move into waylandDaniel Eklöf2019-10-27-0/+11
|
* wayland: move clipboard/primary structs into the wayland structDaniel Eklöf2019-10-27-0/+11
| | | | These are application global and very wayland specific
* wayland: implement wayl_win_destroy()Daniel Eklöf2019-10-27-0/+24
|
* wayland: implement wayl_destroy()Daniel Eklöf2019-10-27-0/+66