aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
| * input: fix 'unused variable' warning (release builds)Daniel Eklöf2020-02-29-1/+2
| |
| * input: cleanupDaniel Eklöf2020-02-29-73/+71
| |
| * input: don't update xcursor on keyboard enter/leaveDaniel Eklöf2020-02-29-4/+2
| | | | | | | | | | | | | | | | | | I'm not sure why I added this in the first place... our cursor doesn't depend on keyboard focus. Furthermore, with CSDs, we may get keyboard enter events for the CSD surfaces, and these should definitely *not* update the xcursor as if it was inside the main surface.
| * input: csd: add a small delay before initiating a moveDaniel Eklöf2020-02-29-5/+43
| | | | | | | | | | This ensures the user has time to double-click to toggle the maximized state.
| * wayland: remove all usages of wayl_terminal_from_surface()Daniel Eklöf2020-02-29-19/+6
| | | | | | | | Use the 'user data' pointer from the wayland surface instead.
| * wayland: store pointer to window instance in all surfacesDaniel Eklöf2020-02-29-1/+10
| |
| * input: reset mouse state on pointer leaveDaniel Eklöf2020-02-29-0/+3
| |
| * input: toggle maximized state when double-clicking the title barDaniel Eklöf2020-02-29-12/+11
| |
| * input: handle double/triple click state regardless of surfaceDaniel Eklöf2020-02-29-21/+23
| |
| * render: resize: redraw search box, if visibleDaniel Eklöf2020-02-29-1/+7
| |
| * render: search: fix off-by-one error in number of visible charactersDaniel Eklöf2020-02-29-2/+2
| |
| * render: wl_subsurface_set_position() uses un-scaled coordinatesDaniel Eklöf2020-02-29-3/+3
| | | | | | | | | | This fixes an issue where the CSDs and the search box was incorrectly positioned when output's scale != 1.
| * config: change default geometry from 800x600 -> 700x500Daniel Eklöf2020-02-29-4/+4
| | | | | | | | | | | | | | | | If the display resolution *is* 800x600, using this size is bad since there will typically be panels and other things on the screen too. Not that 800x600 is something we expect to see in real life, but may happen on virtual displays.
| * render: csd: bump title bar height from 20 -> 26Daniel Eklöf2020-02-29-1/+1
| |
| * input: handle CSD border corners correctlyDaniel Eklöf2020-02-29-31/+88
| | | | | | | | That is, change to correct cursor, and do resize correctly.
| * term: loop through all sub-surfaces when switching sync/desync modeDaniel Eklöf2020-02-29-4/+5
| |
| * render: csd: use a struct for positioning informationDaniel Eklöf2020-02-28-5/+10
| |
| * render: resize: change 'resize' log from info to debugDaniel Eklöf2020-02-28-4/+4
| |
| * render: CSDs: transparent bordersDaniel Eklöf2020-02-28-3/+6
| | | | | | | | | | This gives the illusion that window is border-less, but still gives us surfaces the user can grab to resize the window.
| * render: resize: exclude CSD borders when loading default geometry in maximized modeDaniel Eklöf2020-02-28-6/+17
| |
| * render: CSDs: don't render borders (only title bar) in maximized modeDaniel Eklöf2020-02-28-1/+13
| |
| * wayland: configure: work around GNOME/mutter weirdnessDaniel Eklöf2020-02-28-4/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When resizing the window under mutter, mutter seems to expect a configure ack *and* a surface commit *right* away, or things get out of sync. Unlike kwin, which is requires a commit for each configure ack, but is fine with having the commit arrive later (after we've rendered it), mutter is not. I even tried delaying the configure ack until just before the commit, but still no go. So for now, detect when we're running under mutter and always do a surface commit right away. This can *not* be done on any other compositor as it breaks the CSD and main surface synchronization; we've resized the CSDs, but not the main surface. I.e. this *should* not work, but for some reason is the *only* way to make things work on mutter. Interestingly, doing it any other way on mutter causes visual glitches; window jumping around when resizing, or de-synchronized CSDs/main surface.
| * wayland: fix window size adjustment for CSDs placed outside main surfaceDaniel Eklöf2020-02-28-10/+18
| | | | | | | | | | | | | | * Do this both in XDG configure, and when the decoration manager switches between CSDs/SSDs at run-time. * Exclude CSD borders when we're maximized
| * wayland: warn when compositor doesn't implement the decoration manager interfaceDaniel Eklöf2020-02-28-0/+1
| |
| * wayland: request server side decorationsDaniel Eklöf2020-02-28-2/+0
| |
| * wayland: drop required wl_output interface version from 3 -> 2Daniel Eklöf2020-02-28-1/+1
| | | | | | | | We don't need version 3, and mutter 3.34 only implements version 2.
| * render: color_hex_to_pixman_with_alpha(): handle alpha == 0 (transparent)Daniel Eklöf2020-02-28-0/+3
| |
| * terminal: error out when we fail to load the primary fontDaniel Eklöf2020-02-28-1/+2
| |
| * config: add default font when using the default configDaniel Eklöf2020-02-28-1/+1
| | | | | | | | | | | | When there is no configuration file, and we're using the default configuration, we accidentally jumped pasted the code that ensures we have at least "monospace" in the font list.
| * render: remember, and use, last unmaximized sizeDaniel Eklöf2020-02-26-10/+28
| | | | | | | | | | | | | | | | When the compositor wants us to decide the size (it sends a configure event with width/height == 0), then use the last unmaximized size, if there is one. If there isn't one, use the size from the user configuration.
| * wayland: once again switch to positioning CSDs outside the main surfaceDaniel Eklöf2020-02-26-1/+1
| |
| * render: resize: adjust user configured size for CSDsDaniel Eklöf2020-02-26-0/+5
| |
| * wayland: document what FOOT_CSD_OUTSIDE doesDaniel Eklöf2020-02-26-0/+5
| |
| * wayland: switch back to positioning CSDs inside the main surfaceDaniel Eklöf2020-02-26-1/+1
| |
| * wayland: resize main surface when enabling CSDs runtimeDaniel Eklöf2020-02-26-1/+11
| | | | | | | | | | | | | | | | | | | | When we position CSDs inside the main surface, and CSDs are switched on run-time, we need to force a grid resize, since the actual window content will now be smaller. Alternative solution: call resize with width/height increased, to account for the CSDs. This would increase the window size, but would keep the grid size fixed.
| * input: temporary code to trigger maximize/minimizeDaniel Eklöf2020-02-26-0/+12
| |
| * wayland: track window maximized stateDaniel Eklöf2020-02-26-2/+7
| |
| * render: csd: fix typo when CSDs are positioned *inside* main surfaceDaniel Eklöf2020-02-26-1/+1
| |
| * wayland: don't adjust size when CSDs are positioned inside main surfaceDaniel Eklöf2020-02-26-0/+5
| |
| * render: don't center grid on surfaceDaniel Eklöf2020-02-26-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Up until now, we've centered the grid on the main surface. Meaning, we calculated the unusable area, added the user configured padding and then centered the grid. This may look nice at first, but doesn't anymore when you start resizing the window. Resizing the window will cause the top+left margins to change, which makes the text "jump" or "wobble". So, now we fix the grid in the upper left corner defined by the user configured padding (plus CSDs if they aren't positioned outside the main surface).
| * wayland: disable debug logsDaniel Eklöf2020-02-26-1/+1
| |
| * csd: don't draw CSDs in fullscreen modeDaniel Eklöf2020-02-26-42/+51
| |
| * wayland: decoration configure: no need to force a resize - just update the CSDsDaniel Eklöf2020-02-26-6/+2
| |
| * wayland: configure: adjust configured size when using CSDsDaniel Eklöf2020-02-26-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | The size (width, height) arguments provided by the compositor in the XDG toplevel configure event *include* the surrounding CSDs. Since our code assumes the size is for the main surface only (and then positions the sub-surfaces *outside* the main surface), adjust the provided size when using CSDs. This ensures our actual window size ends up being what the compositor wants it to be, and it fixes resize-glitches when resizing using CSDs.
| * wayland: instantiate sub-surfaces on-demandDaniel Eklöf2020-02-26-32/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While most compositors handle instantiated but not-yet-mapped sub-surfaces correctly, e.g. kwin does not. For example, it will incorrectly offset the main surface both horizontally and vertically with a couple of pixels, leaving two transparent areas at the top and left, between the SSDs and the main surface. Note that a workaround is to position the sub-surfaces inside the main surface while they're unmapped. However, since the surfaces may be larger than the main surface (the CSDs, for examples, always are), this doesn't quite work since kwin, at least, resizes the window to include the sub-surfaces, even when unmapped. So, instead we instantiate all sub-surfaces on demand, when we know where to position them, and when they should be mapped.
| * render: resize: ignore unconfigured windowsDaniel Eklöf2020-02-26-0/+3
| |
| * csd: position CSD sub-surfaces *outside* the main windowDaniel Eklöf2020-02-26-57/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For now, this behavior is controlled with an ifdef. At least kwin seems very buggy when the decorations are positioned like this (but normally you'd use server-side decorations with kwin anyway). This commit also changes 'use_csd' to be a tri-state variable; when instantiating a window it is set to 'unknown'. If there's no decoration manager available (e.g. weston), we immediately set it to 'yes' (use CSDs). Otherwise, we wait for the decoration manager callback to indicate whether we should use CSDs or not.
| * grid: grid_reflow(): may be called with old_rows/cols == new_rows/colsDaniel Eklöf2020-02-25-1/+1
| | | | | | | | TODO: avoid calling grid_reflow() in this case.
| * term: visual_focus_in/out: redraw CSDsDaniel Eklöf2020-02-25-0/+18
| | | | | | | | | | | | | | We draw the CSDs in a darker color when we're inactive. Weston seems to be buggy with synchronized subsurfaces, so temporarily reconfigure them to desynchronized surfaces.
| * input: wip: trigger move/resize when left-clicking CSDDaniel Eklöf2020-02-25-5/+73
| |
| * render: search: take CSD into accountDaniel Eklöf2020-02-25-5/+9
| |
| * render: resize with with/height == 0 resizes to user configured dimensionsDaniel Eklöf2020-02-25-23/+6
| |
| * wayland: mark the whole search surface as opaqueDaniel Eklöf2020-02-25-0/+5
| |
| * wayland: synchronize the CSD surfaces to the main surfaceDaniel Eklöf2020-02-25-0/+1
| |
| * wayland: default to CSDsDaniel Eklöf2020-02-25-0/+1
| | | | | | | | | | Only when the compositor implements the XDG decoration manager interface, and it tells us to use server side decorations to we do so.
| * wayland: weston does not implement the xdg decoration manager interfaceDaniel Eklöf2020-02-25-6/+10
| |
| * wayland: xdg_surface_configure(): call wl_surface_commit()Daniel Eklöf2020-02-25-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | It seems kwin expects a wl_surface_commit() for each xdg_surface_ack_configure(). We don't want to commit before we've rendered a resized surface. So, if we *did* change the window size, let the normal rendering path do the surface commit. Only when we did *not* change the window size do we need to explicitly commit the surface in xdg_surface_configure().
| * render: render_resize_*() returns a boolean indicating whether size changed.Daniel Eklöf2020-02-25-9/+12
| |
| * wayland: decoration-configure: call render_resize() to add/remove CSDsDaniel Eklöf2020-02-25-0/+7
| | | | | | | | | | | | Call render_resize_force() when the decoration type changes run-time. This ensures the CSDs are drawn when changing from server -> client side decorations, and removed when going the other way.
| * render: render_resize(): don't allow too small window sizesDaniel Eklöf2020-02-25-8/+31
| |
| * render: call render_csd() from render_resize(), not render_grid()Daniel Eklöf2020-02-25-3/+1
| | | | | | | | | | The CSDs doesn't need to be re-drawn each time we redraw the grid, only when the window is resized.
| * render: export render_csd()Daniel Eklöf2020-02-25-18/+34
| |
| * render: make CSD border and title size globally accessibleDaniel Eklöf2020-02-25-0/+6
| |
| * shm: handle EINTR in posix_fallocate()Daniel Eklöf2020-02-25-1/+4
| |
| * main: geometry defaults to 800x600 pixelsDaniel Eklöf2020-02-25-12/+5
| |
| * input: pointer-motion/button: ignore actions in non-main surfacesDaniel Eklöf2020-02-24-0/+7
| |
| * input: pointer-leave: reset 'active-surface' in terminalDaniel Eklöf2020-02-24-1/+3
| |
| * input: pointer-enter: differentiate between the surfacesDaniel Eklöf2020-02-24-3/+33
| |
| * render: csd: sort geometry entriesDaniel Eklöf2020-02-24-5/+5
| |
| * wayland: terminal_from_surface(): use term_surface_kind()Daniel Eklöf2020-02-24-4/+1
| |
| * term: add term_surface_kind(), and track currently active surfaceDaniel Eklöf2020-02-24-0/+36
| | | | | | | | | | | | This is needed to handle pointer motion and button events correctly, since mouse actions in e.g. CSD surfaces are very different from mouse actions in the main window.
| * render: csd: render all borders and the title barDaniel Eklöf2020-02-24-3/+7
| | | | | | | | | | | | * Still no content in the title bar * Colors are temporary * No resize/drag yet
| * Merge branch 'master' into csdDaniel Eklöf2020-02-24-105/+139
| |\ | |/ |/|
* | sixel: CSI setters also write a reply to the clientDaniel Eklöf2020-02-24-5/+9
| |
* | term: scroll: call sixel_delete_*() instead of manually erasing sixel imagesDaniel Eklöf2020-02-24-35/+4
| |
* | term: term_erase(): call sixel_delete_*()Daniel Eklöf2020-02-24-2/+4
| | | | | | | | | | This ensures sixel images are removed, regardless of _how_ the screen was erased.
* | sixel: ensure 'start' row is not outside the grid row rangeDaniel Eklöf2020-02-24-1/+3
| |
* | sixel: add sixel_delete_at_row and sixel_delete_in_rangeDaniel Eklöf2020-02-24-7/+68
| | | | | | | | | | These are utility functions to erase sixel images that are at the specified row, or in a row range.
* | term: resize: pre-calculate right/bottom marginsDaniel Eklöf2020-02-24-55/+51
| |
| * csd: wip: something to get started...Daniel Eklöf2020-02-23-5/+83
|/
* csi: delete all sixels on the 'alt' grid when switching back to 'normal'Daniel Eklöf2020-02-22-0/+8
|
* render: sixel: don't render sixels on the 'other' gridDaniel Eklöf2020-02-22-0/+3
|
* term: scroll: don't delete sixel images on the 'other' gridDaniel Eklöf2020-02-22-0/+6
|
* sixel: destroy_at_cursor(): skip images on 'other' gridDaniel Eklöf2020-02-22-0/+3
|
* sixel: track which grid image was created onDaniel Eklöf2020-02-22-0/+2
|
* sixel: rename: purge_at_cursor() -> delete_at_cursor()Daniel Eklöf2020-02-22-4/+4
|
* Merge branch 'sixel-graphics'Daniel Eklöf2020-02-22-6/+849
|\
| * README: add screenshot of sixel graphicsDaniel Eklöf2020-02-22-0/+3
| |
| * sixel: purge images in unhook, rather than in initDaniel Eklöf2020-02-22-2/+2
| | | | | | | | | | This fixes an issue where the cursor was seen blinking in animated GIFs.
| * sixel: purge images at current cursor rowDaniel Eklöf2020-02-22-7/+21
| | | | | | | | | | When printing a character, or starting a new sixel image, purge all images that cover the cursor's current row.
| * sixel: oopsDaniel Eklöf2020-02-22-2/+2
| |
| * README: add sixel support to feature listDaniel Eklöf2020-02-22-0/+1
| |
| * sixel: don't ever shrink the imageDaniel Eklöf2020-02-22-3/+9
| |
| * sixel: add HLS color format supportDaniel Eklöf2020-02-22-2/+132
| |
| * sixel: add comments to max_width()/max_height()Daniel Eklöf2020-02-22-0/+2
| |
| * sixel: application configurable image max width/heightDaniel Eklöf2020-02-22-8/+86
| |
| * sixel: application configurable palette size (color count)Daniel Eklöf2020-02-22-6/+73
| | | | | | | | | | This implements the CSI escapes for retrieving and (re)setting the palette size.
| * sixel: use terminal's background color, not palette[0]Daniel Eklöf2020-02-22-3/+3
| |
| * csi: DA: we now implement sixelDaniel Eklöf2020-02-22-1/+1
| |
| * sixel: finalize: use width/height from image, not row/col posDaniel Eklöf2020-02-22-10/+4
| |