mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-28 06:46:38 -04:00
HACK fractional scaling
This commit is contained in:
parent
68db8ff1f5
commit
4564d78eff
8 changed files with 268 additions and 70 deletions
12
wayland.h
12
wayland.h
|
|
@ -15,6 +15,8 @@
|
|||
#include <xdg-decoration-unstable-v1.h>
|
||||
#include <xdg-output-unstable-v1.h>
|
||||
#include <xdg-shell.h>
|
||||
#include <viewporter.h>
|
||||
#include <fractional-scale-v1.h>
|
||||
|
||||
#if defined(HAVE_XDG_ACTIVATION)
|
||||
#include <xdg-activation-v1.h>
|
||||
|
|
@ -131,7 +133,7 @@ struct seat {
|
|||
struct wl_surface *surface;
|
||||
struct wl_cursor_theme *theme;
|
||||
struct wl_cursor *cursor;
|
||||
int scale;
|
||||
double scale;
|
||||
bool hidden;
|
||||
|
||||
const char *xcursor;
|
||||
|
|
@ -288,6 +290,7 @@ struct monitor {
|
|||
struct wl_surf_subsurf {
|
||||
struct wl_surface *surf;
|
||||
struct wl_subsurface *sub;
|
||||
struct wp_viewport *viewport;
|
||||
};
|
||||
|
||||
struct wl_url {
|
||||
|
|
@ -306,6 +309,8 @@ struct wl_window {
|
|||
#if defined(HAVE_XDG_ACTIVATION)
|
||||
struct xdg_activation_token_v1 *xdg_activation_token;
|
||||
#endif
|
||||
struct wp_viewport *viewport;
|
||||
struct wp_fractional_scale_v1 *fractional_scale;
|
||||
|
||||
struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration;
|
||||
|
||||
|
|
@ -352,6 +357,7 @@ struct wl_window {
|
|||
} configure;
|
||||
|
||||
int resize_timeout_fd;
|
||||
double scale;
|
||||
};
|
||||
|
||||
struct terminal;
|
||||
|
|
@ -383,6 +389,10 @@ struct wayland {
|
|||
struct wp_presentation *presentation;
|
||||
uint32_t presentation_clock_id;
|
||||
|
||||
struct wp_viewporter *viewporter;
|
||||
struct wp_fractional_scale_manager_v1
|
||||
*fractional_scale_manager;
|
||||
|
||||
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
|
||||
struct zwp_text_input_manager_v3 *text_input_manager;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue