Compare commits
9 Commits
pull-gtk-4
...
pull-gtk-5
Author | SHA1 | Date | |
---|---|---|---|
|
800b0e814b | ||
|
55519a4b24 | ||
|
f85e3457ce | ||
|
9c269f6d7b | ||
|
dffacd4654 | ||
|
20c50a955f | ||
|
bd7ce902ab | ||
|
e20c016e32 | ||
|
dc491cfc14 |
2
Makefile
2
Makefile
@@ -376,7 +376,7 @@ endif
|
|||||||
ifneq ($(CONFIG_MODULES),)
|
ifneq ($(CONFIG_MODULES),)
|
||||||
$(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)"
|
$(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)"
|
||||||
for s in $(patsubst %.mo,%$(DSOSUF),$(modules-m)); do \
|
for s in $(patsubst %.mo,%$(DSOSUF),$(modules-m)); do \
|
||||||
$(INSTALL_PROG) $(STRIP_OPT) $$s "$(DESTDIR)$(qemu_moddir)/$${s//\//-}"; \
|
$(INSTALL_PROG) $(STRIP_OPT) $$s "$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \
|
||||||
done
|
done
|
||||||
endif
|
endif
|
||||||
ifneq ($(HELPERS-y),)
|
ifneq ($(HELPERS-y),)
|
||||||
|
@@ -225,8 +225,10 @@ static gboolean serial_xmit(GIOChannel *chan, GIOCondition cond, void *opaque)
|
|||||||
|
|
||||||
if (s->tsr_retry <= 0) {
|
if (s->tsr_retry <= 0) {
|
||||||
if (s->fcr & UART_FCR_FE) {
|
if (s->fcr & UART_FCR_FE) {
|
||||||
s->tsr = fifo8_is_empty(&s->xmit_fifo) ?
|
if (fifo8_is_empty(&s->xmit_fifo)) {
|
||||||
0 : fifo8_pop(&s->xmit_fifo);
|
return FALSE;
|
||||||
|
}
|
||||||
|
s->tsr = fifo8_pop(&s->xmit_fifo);
|
||||||
if (!s->xmit_fifo.num) {
|
if (!s->xmit_fifo.num) {
|
||||||
s->lsr |= UART_LSR_THRE;
|
s->lsr |= UART_LSR_THRE;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,8 @@
|
|||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; under version 2 of the License.
|
* the Free Software Foundation; either version 2 of the License,
|
||||||
|
* or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
@@ -3,7 +3,8 @@
|
|||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; under version 2 of the License.
|
* the Free Software Foundation; either version 2 of the License,
|
||||||
|
* or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
@@ -394,7 +394,8 @@ check-block: $(patsubst %,check-%, $(check-block-y))
|
|||||||
check: check-qapi-schema check-unit check-qtest
|
check: check-qapi-schema check-unit check-qtest
|
||||||
check-clean:
|
check-clean:
|
||||||
$(MAKE) -C tests/tcg clean
|
$(MAKE) -C tests/tcg clean
|
||||||
rm -rf $(check-unit-y) $(check-qtest-i386-y) $(check-qtest-x86_64-y) $(check-qtest-sparc64-y) $(check-qtest-sparc-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y)
|
rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y)
|
||||||
|
rm -rf $(sort $(foreach target,$(SYSEMU_TARGET_LIST), $(check-qtest-$(target)-y)))
|
||||||
|
|
||||||
clean: check-clean
|
clean: check-clean
|
||||||
|
|
||||||
|
19
ui/gtk.c
19
ui/gtk.c
@@ -476,8 +476,15 @@ static void gd_change_runstate(void *opaque, int running, RunState state)
|
|||||||
|
|
||||||
static void gd_mouse_mode_change(Notifier *notify, void *data)
|
static void gd_mouse_mode_change(Notifier *notify, void *data)
|
||||||
{
|
{
|
||||||
gd_update_cursor(container_of(notify, GtkDisplayState, mouse_mode_notifier),
|
GtkDisplayState *s;
|
||||||
FALSE);
|
|
||||||
|
s = container_of(notify, GtkDisplayState, mouse_mode_notifier);
|
||||||
|
/* release the grab at switching to absolute mode */
|
||||||
|
if (qemu_input_is_absolute() && gd_is_grab_active(s)) {
|
||||||
|
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(s->grab_item),
|
||||||
|
FALSE);
|
||||||
|
}
|
||||||
|
gd_update_cursor(s, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** GTK Events **/
|
/** GTK Events **/
|
||||||
@@ -685,6 +692,14 @@ static gboolean gd_button_event(GtkWidget *widget, GdkEventButton *button,
|
|||||||
GtkDisplayState *s = opaque;
|
GtkDisplayState *s = opaque;
|
||||||
InputButton btn;
|
InputButton btn;
|
||||||
|
|
||||||
|
/* implicitly grab the input at the first click in the relative mode */
|
||||||
|
if (button->button == 1 && button->type == GDK_BUTTON_PRESS &&
|
||||||
|
!qemu_input_is_absolute() && !gd_is_grab_active(s)) {
|
||||||
|
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(s->grab_item),
|
||||||
|
TRUE);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
if (button->button == 1) {
|
if (button->button == 1) {
|
||||||
btn = INPUT_BUTTON_LEFT;
|
btn = INPUT_BUTTON_LEFT;
|
||||||
} else if (button->button == 2) {
|
} else if (button->button == 2) {
|
||||||
|
@@ -549,6 +549,10 @@ static int interface_client_monitors_config(QXLInstance *sin,
|
|||||||
QemuUIInfo info;
|
QemuUIInfo info;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
if (!mc) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FIXME: multihead is tricky due to the way
|
* FIXME: multihead is tricky due to the way
|
||||||
* spice has multihead implemented.
|
* spice has multihead implemented.
|
||||||
|
Reference in New Issue
Block a user