Merge branch '202503041751-fixCario' into 'gtk-3-24'
fix: [draw] The application interface is unresponsive to clicks. See merge request GNOME/gtk!8265
This commit is contained in:
commit
7e4de90952
@ -72,6 +72,8 @@
|
|||||||
#include <X11/extensions/Xdamage.h>
|
#include <X11/extensions/Xdamage.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define XLIB_COORD_MAX 32767
|
||||||
|
|
||||||
const int _gdk_x11_event_mask_table[21] =
|
const int _gdk_x11_event_mask_table[21] =
|
||||||
{
|
{
|
||||||
ExposureMask,
|
ExposureMask,
|
||||||
@ -193,6 +195,14 @@ _gdk_x11_window_update_size (GdkWindowImplX11 *impl)
|
|||||||
{
|
{
|
||||||
if (impl->cairo_surface)
|
if (impl->cairo_surface)
|
||||||
{
|
{
|
||||||
|
if (impl->unscaled_width < 0)
|
||||||
|
impl->unscaled_width = 0;
|
||||||
|
else if (impl->unscaled_width > XLIB_COORD_MAX)
|
||||||
|
impl->unscaled_width = XLIB_COORD_MAX;
|
||||||
|
if (impl->unscaled_height < 0)
|
||||||
|
impl->unscaled_height = 0;
|
||||||
|
else if (impl->unscaled_height > XLIB_COORD_MAX)
|
||||||
|
impl->unscaled_height = XLIB_COORD_MAX;
|
||||||
cairo_xlib_surface_set_size (impl->cairo_surface,
|
cairo_xlib_surface_set_size (impl->cairo_surface,
|
||||||
impl->unscaled_width, impl->unscaled_height);
|
impl->unscaled_width, impl->unscaled_height);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user