Skip to content

Commit

Permalink
CPU usage fix for Wayland.
Browse files Browse the repository at this point in the history
  • Loading branch information
gtkwave committed Feb 3, 2022
1 parent 5686245 commit 7c3a5f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gtkwave3-gtk3/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -1825,11 +1825,12 @@
Updated show-change widget.
Fix xml2stems when begin blocks are in functions.
Skip over decimal point in timescale in viewer.
3.4.0 25jan22 Merge in major GUI widget refactoring.
3.4.0 02feb22 Merge in major GUI widget refactoring.
Fixes for toggle menu item access under Tcl.
Adds support for "namespace import gtkwave::*" in Tcl.
Added dbl_mant_dig_overrides rc environment variable.
Path fix for twinwave on Windows.
Compiler fix for __GTK_SOCKET_H__ availability.
VCD reader fixes for unnamed Icarus begin blocks.
Add OpenBSD and FreeBSD OSs for unbuffered FST I/O.
CPU usage fix for Wayland.
6 changes: 6 additions & 0 deletions gtkwave3-gtk3/src/wavewindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,11 @@ gdk_window_end_draw_frame(gtk_widget_get_window(GLOBALS->wavearea), gdc);
cairo_destroy (cr);
#endif

/*
#ifdef GDK_WINDOWING_WAYLAND
if(GDK_IS_WAYLAND_DISPLAY(gdk_display_get_default())) gtk_widget_queue_draw(GLOBALS->wavearea);
#endif
*/
}


Expand Down Expand Up @@ -1685,6 +1687,10 @@ ev.window = gtk_widget_get_window(GLOBALS->wavearea);
GLOBALS->wavearea_drag_active = 1;

motion_notify_event(GLOBALS->wavearea, &ev);

#ifdef GDK_WINDOWING_WAYLAND
if(GDK_IS_WAYLAND_DISPLAY(gdk_display_get_default())) gtk_widget_queue_draw(GLOBALS->wavearea);
#endif
}


Expand Down

0 comments on commit 7c3a5f5

Please sign in to comment.