x11: Initial cut at supporting window scaling for X11
If you set GDK_SCALE=2 in the environment then all windows will be scaled by 2. Its not an ideal solution as it doesn't handle multi-monitors at different scales, and only affects gtk apps. But it is a good starting points and will help a lot on HiDPI laptops.
This commit is contained in:
@ -140,11 +140,13 @@ gboolean _gdk_x11_selection_filter_clear_event (XSelectionClearEvent *event);
|
||||
|
||||
cairo_region_t* _gdk_x11_xwindow_get_shape (Display *xdisplay,
|
||||
Window window,
|
||||
gint scale,
|
||||
gint shape_type);
|
||||
|
||||
void _gdk_x11_region_get_xrectangles (const cairo_region_t *region,
|
||||
gint x_offset,
|
||||
gint y_offset,
|
||||
gint scale,
|
||||
XRectangle **rects,
|
||||
gint *n_rects);
|
||||
|
||||
|
Reference in New Issue
Block a user