aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-06 18:16:54 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-06 18:16:54 +0000
commitc5a1af4e534f0f290ea885b221d7d37d020ac994 (patch)
tree6562a6351daa3e35e11c81ae887f45b473889c5e /input.c
parentrender: csd: improved look of minimize/maximize/close buttons (diff)
render: never render CSD and/or search box "immediately"
Handle the CSDs and the search box the same way we handle the main grid; when we need to redraw them, call render_refresh_{csd,search}(). This sets a flag that is checked after each FDM iteration. All actual rendering is done here. This also ties the commits of the Wayland sub-surfaces to the commit of the main surface.
Diffstat (limited to 'input.c')
-rw-r--r--input.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/input.c b/input.c
index a9e7ac83..efa58c9d 100644
--- a/input.c
+++ b/input.c
@@ -711,13 +711,9 @@ wl_pointer_enter(void *data, struct wl_pointer *wl_pointer,
case TERM_SURF_BUTTON_MINIMIZE:
case TERM_SURF_BUTTON_MAXIMIZE:
case TERM_SURF_BUTTON_CLOSE:
- quirk_weston_csd_on(term);
- render_csd(term);
- quirk_weston_csd_off(term);
- render_refresh(term);
-
term->xcursor = "left_ptr";
render_xcursor_set(term);
+ render_refresh_csd(term);
break;
case TERM_SURF_NONE:
@@ -771,10 +767,7 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
if (old_moused->is_shutting_down)
break;
- quirk_weston_csd_on(old_moused);
- render_csd(old_moused);
- quirk_weston_csd_off(old_moused);
- render_refresh(old_moused);
+ render_refresh_csd(old_moused);
break;
case TERM_SURF_NONE: