aboutsummaryrefslogtreecommitdiff
path: root/src/x11_window.c
AgeCommit message (Collapse)Author
2021-07-29Scale fonts when Wayland updates scaling factorIvan Oleynikov
Before this commit, the code in src/wl_window.c seemed to handle the Wayland scaling [1] correctly, it was sending resize events to imv to update the buffer size accordingly. One thing it didn't update is the scaling of fonts that Pango renders on Cairo. This commit simply forwards the scaling factor (computed as [1] requests) together with updated buffer dimentions in resize event, and when the resize event is handled it calls cairo_surface_set_device_scale to notify Pango/Cairo of the scaling. For X11, I simply assume the scaline factor is always 1. This seems to be what the old code did: `grep scale src/x11_window.c` gives no matches. AFAIK, X11 does not have an established way of telling clients what scaling factor to use (and never updates it at runtime). [1]: https://wayland-book.com/surfaces-in-depth/hidpi.html
2020-07-21Fix `XVisualInfo` leakTuomas Siipola
It's not documented when this value should be freed but other GLX applications free it here.
2020-07-21Fix X11 window cleanupTuomas Siipola
2020-07-21Fix `keymap` leakTuomas Siipola
2019-08-25Remove unused imv_window_get_keymap functionHarry Jeffery
2019-08-24imv: Move keyboard handling into window subsystemHarry Jeffery
This is required as key repeating is going to need to be handled locally on Wayland, which means a slight refactor.
2019-08-24window: Set Wayland/X11 class/app_id hintsHarry Jeffery
2019-08-23x11_window: Maintain keyboard modifiers stateHarry Jeffery
2019-08-18x11_window: Use XCB to load keymapHarry Jeffery
2019-08-15wl/x11: Ensure event writes are always atomicHarry Jeffery
2019-08-13Wayland: Detect keyboard layout automaticallyHarry Jeffery
2019-07-16x11: Pass events via pipe not queueHarry Jeffery
2019-07-16x11: Use pipe for custom event notificationHarry Jeffery
2019-07-16x11: Implement mouse inputHarry Jeffery
2019-07-15x11: Add fullscreen supportHarry Jeffery
2019-07-15x11: Fix crash by implementing window size accessorsHarry Jeffery
2019-07-13x11_window: Handle most input eventsHarry Jeffery
2019-07-13x11_window: Implement wait_for_eventHarry Jeffery
2019-07-13Create stub X11 window implementationHarry Jeffery