emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/pgtk 7326982 2/2: Fix visual-bell on X


From: Yuuki Harano
Subject: feature/pgtk 7326982 2/2: Fix visual-bell on X
Date: Mon, 11 Jan 2021 05:59:24 -0500 (EST)

branch: feature/pgtk
commit 7326982d283abe7545d5f5742ea2b57e513fd285
Author: Yuuki Harano <masm+github@masm11.me>
Commit: Yuuki Harano <masm+github@masm11.me>

    Fix visual-bell on X
    
    * src/pgtkterm.c (pgtk_flash): Change size source.
    
    On X, surface_orig is not an image surface but xlib surface, so I
    cannot get its size with cairo_image_surface_get_{width,height}.
---
 src/pgtkterm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 0038167..44e1f3e 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -3706,8 +3706,8 @@ pgtk_flash (struct frame *f)
   {
     cairo_surface_t *surface_orig = FRAME_CR_SURFACE (f);
 
-    int width = cairo_image_surface_get_width (surface_orig);
-    int height = cairo_image_surface_get_height (surface_orig);
+    int width = FRAME_CR_SURFACE_DESIRED_WIDTH (f);
+    int height = FRAME_CR_SURFACE_DESIRED_HEIGHT (f);
     cairo_surface_t *surface =
       cairo_surface_create_similar (surface_orig, CAIRO_CONTENT_COLOR_ALPHA,
                                    width, height);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]