[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 12/24] gtk: add tab to trace events
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 12/24] gtk: add tab to trace events |
Date: |
Mon, 26 May 2014 10:14:07 +0200 |
So you can see which of multiple displays (if present) was resized ;)
Signed-off-by: Gerd Hoffmann <address@hidden>
---
trace-events | 6 +++---
ui/gtk.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/trace-events b/trace-events
index b6d289d..3a41abf 100644
--- a/trace-events
+++ b/trace-events
@@ -1045,9 +1045,9 @@ displaychangelistener_unregister(void *dcl, const char
*name) "%p [ %s ]"
ppm_save(const char *filename, void *display_surface) "%s surface=%p"
# ui/gtk.c
-gd_switch(int width, int height) "width=%d, height=%d"
-gd_update(int x, int y, int w, int h) "x=%d, y=%d, w=%d, h=%d"
-gd_key_event(int gdk_keycode, int qemu_keycode, const char *action)
"translated GDK keycode %d to QEMU keycode %d (%s)"
+gd_switch(const char *tab, int width, int height) "tab=%s, width=%d, height=%d"
+gd_update(const char *tab, int x, int y, int w, int h) "tab=%s, x=%d, y=%d,
w=%d, h=%d"
+gd_key_event(const char *tab, int gdk_keycode, int qemu_keycode, const char
*action) "tab=%s, translated GDK keycode %d to QEMU keycode %d (%s)"
# ui/input.c
input_event_key_number(int conidx, int number, bool down) "con %d, key number
0x%x, down %d"
diff --git a/ui/gtk.c b/ui/gtk.c
index 07883a1..3ee9465 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -355,7 +355,7 @@ static void gd_update(DisplayChangeListener *dcl,
int fbw, fbh;
int ww, wh;
- trace_gd_update(x, y, w, h);
+ trace_gd_update(vc->label, x, y, w, h);
if (vc->gfx.convert) {
pixman_image_composite(PIXMAN_OP_SRC, vc->gfx.ds->image,
@@ -461,7 +461,7 @@ static void gd_switch(DisplayChangeListener *dcl,
VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
bool resized = true;
- trace_gd_switch(surface_width(surface), surface_height(surface));
+ trace_gd_switch(vc->label, surface_width(surface),
surface_height(surface));
if (vc->gfx.surface) {
cairo_surface_destroy(vc->gfx.surface);
@@ -815,7 +815,7 @@ static gboolean gd_key_event(GtkWidget *widget, GdkEventKey
*key, void *opaque)
}
#endif
- trace_gd_key_event(gdk_keycode, qemu_keycode,
+ trace_gd_key_event(vc->label, gdk_keycode, qemu_keycode,
(key->type == GDK_KEY_PRESS) ? "down" : "up");
for (i = 0; i < ARRAY_SIZE(modifier_keycode); i++) {
--
1.8.3.1
- [Qemu-devel] [PULL 00/24] gtk: ui overhaul, multiwindow support., Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 01/24] gtk: zap scrolled_window, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 03/24] gtk: cleanup CONFIG_VTE ifdef a bit., Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 05/24] gtk: remove page numbering assumtions from the code, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 04/24] gtk: Add a scrollbar for text consoles, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 09/24] gtk: use device type as label, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 21/24] gtk: Add handling for the xfree86 keycodes, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 08/24] gtk: support multiple gfx displays, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 10/24] gtk: simplify resize, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 06/24] gtk: VirtualConsole restruction, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 12/24] gtk: add tab to trace events,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 14/24] gtk: keep track of grab owner, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 11/24] gtk: allow moving tabs to windows and back., Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 15/24] gtk: skip keyboard grab when hover autograb is active, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 13/24] gtk: add gd_grab trace event, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 19/24] gtk: detached window pointer grabs, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 02/24] gtk: zap vte size requests, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 16/24] gtk: update gd_update_caption, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 22/24] gtk: zap unused global_state, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 20/24] gtk: enable untabify for gfx, Gerd Hoffmann, 2014/05/26
- [Qemu-devel] [PULL 24/24] gtk: workaround gtk2 vte resize issue, Gerd Hoffmann, 2014/05/26