toggle of gtk window's update and render when not in CSD mode
parent
e0584cc5ea
commit
a24c38936e
|
|
@ -464,7 +464,10 @@ int main(){
|
|||
ctx.window.dim[0], ctx.window.dim[1], 0, 0);
|
||||
|
||||
/* frame update and render */
|
||||
if (ctx.window.config.decoration_mode ==
|
||||
ZXDG_TOPLEVEL_DECORATION_V1_MODE_CLIENT_SIDE){
|
||||
csd_gtk_update_and_render(&ctx.window, &ctx.gtk_window, seats, seat_count);
|
||||
}
|
||||
|
||||
/* app update & render */
|
||||
{
|
||||
|
|
@ -998,6 +1001,9 @@ csd_gtk_window_init(CSD_GTK_Window *gtk_window){
|
|||
gtk_window->shadow = csd_subsurface_new();
|
||||
gtk_window->titlebar = csd_subsurface_new();
|
||||
|
||||
wl_subsurface_place_above(gtk_window->titlebar.wl_subsurface,
|
||||
gtk_window->shadow.wl_surface);
|
||||
|
||||
gtk_window->header = gtk_header_bar_new();
|
||||
gtk_window->window = gtk_offscreen_window_new();
|
||||
|
||||
|
|
@ -1176,7 +1182,7 @@ csd_gtk_update_and_render(CSD_Window *window, CSD_GTK_Window *gtk_window,
|
|||
csd_subsurface_commit(subsurface);
|
||||
}
|
||||
|
||||
/* draw frame */
|
||||
/* draw titlebar */
|
||||
{
|
||||
CSD_SubSurface *subsurface = >k_window->titlebar;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue