Re: [Spice-devel] [spice-gtk] Spice-widget: Allow smaller widget with scaling enabled

2016-04-21 Thread Javier Celaya
Can someone review this patch, please? Thank you El 13/04/16 a las 13:42, Javier Celaya escribió: With scaling enabled, the size request of the widget must be 640x480 (the same as with resize_guest_enable) so that the widget can be actually scalled down. --- src/spice-widget.c | 25 +++

Re: [Spice-devel] [virt-tools-list] [PATCH] Disable IME to allow receiving all keys

2016-04-21 Thread Takao Fujiwara
On 04/21/16 19:45, Frediano Ziglio-san wrote: On 04/21/16 01:17, Frediano Ziglio-san wrote: On Wed, Apr 20, 2016 at 05:37:52PM +0900, Takao Fujiwara wrote: My understanding is, Virt-Viewer with ImmDisableIME(-1) can send key events even if the title bar is focused when IME is enabled. I attac

[Spice-devel] [PATCH 05/14] Use weak gobject ref instead of reds_on_char_device_state_destroy

2016-04-21 Thread Jonathon Jongsma
From: Christophe Fergeau RedCharDevice implementation had to callback into reds.c in order to let it know a char device was being destroyed. Now that RedCharDevice is a gobject, a weak reference can be used instead allowing to remove that coupling. --- Changes: - Renamed reds_on_char_device_stat

[Spice-devel] [PATCH 09/14] Print warnings on untested code paths

2016-04-21 Thread Jonathon Jongsma
--- Changes since last version: - split from the deprecation patch Still not sure whether g_critical() is appropriate here vs. just removing the code or something like that. server/display-channel.c | 3 +++ server/sound.c | 1 + 2 files changed, 4 insertions(+) diff --git a/server/d

[Spice-devel] [PATCH 13/14] Remove dead code in reds_fill_channels()

2016-04-21 Thread Jonathon Jongsma
From: Christophe Fergeau channels_info->num_of_channels is assigned, its value is not used, and then it's assigned a different value. The first assignment can be removed. Acked-by: Jonathon Jongsma --- server/reds.c | 1 - 1 file changed, 1 deletion(-) diff --git a/server/reds.c b/server/reds

[Spice-devel] [PATCH 10/14] Mark unused public API methods/code as deprecated

2016-04-21 Thread Jonathon Jongsma
From: Christophe Fergeau --- Changes since last version: - split out debug warnings from this patch server/spice-migration.h | 6 +++--- server/spice-server.h| 12 +++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/server/spice-migration.h b/server/spice-migratio

[Spice-devel] [PATCH 14/14] audio: Remove global 'playback_compression' variable

2016-04-21 Thread Jonathon Jongsma
From: Christophe Fergeau This variable belongs to SpiceServerConfig rather than being a static global variable hidden in sound.c Acked-by: Jonathon Jongsma --- Changes since last version: - change commit log from playback_state to playback_compression server/reds.c | 8 server/red

[Spice-devel] [PATCH 11/14] Add _config_ to SpiceServerConfig accessors

2016-04-21 Thread Jonathon Jongsma
From: Christophe Fergeau Acked-by: Jonathon Jongsma --- server/inputs-channel.c | 8 server/reds.c | 8 server/reds.h | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/server/inputs-channel.c b/server/inputs-channel.c index d1af9cf..da2

[Spice-devel] [PATCH 12/14] Improve Reds/RedMainChannel interface

2016-04-21 Thread Jonathon Jongsma
From: Christophe Fergeau Instead of exporting 2 methods to get number of channels, and to fill channel information, and use that from the main channel code, it's better to do everything in one go in reds.c, and call that single method from the main channel code. --- Changes since last version: -

[Spice-devel] [PATCH 02/14] UpgradeItem: use base PipeItem for refcounting

2016-04-21 Thread Jonathon Jongsma
No need to re-implement refcounting in this subclass. --- Changes since last version: - remove the dcc/display parameter from the struct since the previous patch was added that stored a display pointer in the Drawable struct. server/dcc.c | 16 +--- server/display-cha

[Spice-devel] [PATCH 03/14] Replace RedCharDevice::on_free_self_token with a signal

2016-04-21 Thread Jonathon Jongsma
From: Christophe Fergeau It's more natural to do things this way with glib, and this allows to remove some coupling between Reds and RedCharDeviceVDIPort. Before this commit, the RedCharDeviceVDIPort has to provide a on_free_self_token() because Reds needs to know about it. With a signal, RedChar

[Spice-devel] [PATCH 08/14] Add RedServerConfig

2016-04-21 Thread Jonathon Jongsma
From: Christophe Fergeau This wraps/groups the various parameters that can be set by spice-server users through the spice_server_set_xxx public API. --- Changes since last version: - free the config struct in spice_server_destroy() server/reds-private.h | 34 +- server/reds.c | 32

[Spice-devel] [PATCH 06/14] Rename PipeItem to RedPipeItem

2016-04-21 Thread Jonathon Jongsma
Following internal type naming conventions --- No changes since last patch server/cache-item.h | 2 +- server/cache-item.tmpl.c | 2 +- server/char-device.c | 22 +-- server/char-device.h | 6 +-- server/cursor-channel.c | 22 +-- server/dcc-send.c| 22 +++

[Spice-devel] [PATCH 01/14] Store display in Drawable struct

2016-04-21 Thread Jonathon Jongsma
If the Drawable keeps a pointer to the Display channel that it is associated with, we can unref it directly and not need to pass the 'display' parameter separately to the unref function --- NEW PATCH. This prepares for the UpgradeItem change as discussed on the previous review. server/dcc.c

[Spice-devel] [PATCH 00/14] Rebased patches from refactory branch (April 21)

2016-04-21 Thread Jonathon Jongsma
Several patches from the last set were merged and dropped from the set, several were reviewd per review, and one new one was added. Christophe Fergeau (9): Replace RedCharDevice::on_free_self_token with a signal Use GQueue for RedCharDevice::send_queue Use weak gobject ref instead of reds_on

[Spice-devel] [PATCH 04/14] Use GQueue for RedCharDevice::send_queue

2016-04-21 Thread Jonathon Jongsma
From: Christophe Fergeau There was an extra RedCharDeviceMsgToClientItem type whose only purpose was to manage a linked list of items to send. GQueue has the same purpose as this type in addition to being generic. As the length of the send queue is tracked, a GQueue is more appropriate than a GLi

[Spice-devel] [phodav PATCH 3/3 v6] spice-webdavd-windows: Dismount shared folder on service stop

2016-04-21 Thread Lukáš Venhoda
From: Lukas Venhoda When stopping the service, automatically disconnect shared folder on windows. Not dismounting could lead to multiple shared folders. --- Fixup The last one didnt have the change from ServiceData * to gpointer Changes since v5: - fixed indentation - fixed * indentaion - rem

[Spice-devel] [phodav PATCH 3/3 v6] spice-webdavd-windows: Dismount shared folder on service stop

2016-04-21 Thread Lukáš Venhoda
From: Lukas Venhoda When stopping the service, automatically disconnect shared folder on windows. Not dismounting could lead to multiple shared folders. --- Changes since v5: - fixed indentation - fixed * indentaion - removed return from void functions - changed ServiceData * to gpointer, so

[Spice-devel] [phodav PATCH 2/3 v6] spice-webdavd-windows: Check for mapped shared folder

2016-04-21 Thread Lukáš Venhoda
From: Lukas Venhoda Check whether Spice Folder is already mapped. If yes, don't try to map another one. --- Changes since v4: - fixed indentation - fixed * indentaion Changes since v4: - Moved some variables around - Better debug message - Fixed bug, that would cause the folder not to mount

[Spice-devel] [phodav PATCH 1/3 v6] spice-webdavd-windows: Automount shared folder

2016-04-21 Thread Lukáš Venhoda
From: Lukas Venhoda Try to connect to shared folder automatically on Windows. On each loop of run_service(), run a GTask, that waits for half a second. If read_thread() returns, it means, that sharing is not yet connected, and the map_drive task is cancelled. If the map_drive task is NOT cancel

Re: [Spice-devel] [PATCH] UpgradeItem: use base PipeItem for refcounting

2016-04-21 Thread Frediano Ziglio
> > On Thu, 2016-04-21 at 12:41 +0100, Frediano Ziglio wrote: > > From: Jonathon Jongsma > > > > No need to re-implement refcounting in this subclass. However, I needed > > to add a new 'dcc' member to UpgradeItem to be able to unref properly. > > --- > > server/dcc.c | 18 +

Re: [Spice-devel] [PATCH] UpgradeItem: use base PipeItem for refcounting

2016-04-21 Thread Jonathon Jongsma
On Thu, 2016-04-21 at 12:41 +0100, Frediano Ziglio wrote: > From: Jonathon Jongsma > > No need to re-implement refcounting in this subclass. However, I needed > to add a new 'dcc' member to UpgradeItem to be able to unref properly. > --- > server/dcc.c | 18 +- > serv

Re: [Spice-devel] [PATCH] UpgradeItem: use base PipeItem for refcounting

2016-04-21 Thread Frediano Ziglio
> > From: Jonathon Jongsma > > No need to re-implement refcounting in this subclass. However, I needed > to add a new 'dcc' member to UpgradeItem to be able to unref properly. Sorry, now it's "a new 'display' member". Frediano > --- > server/dcc.c | 18 +- > serve

[Spice-devel] [PATCH] UpgradeItem: use base PipeItem for refcounting

2016-04-21 Thread Frediano Ziglio
From: Jonathon Jongsma No need to re-implement refcounting in this subclass. However, I needed to add a new 'dcc' member to UpgradeItem to be able to unref properly. --- server/dcc.c | 18 +- server/display-channel.c | 4 +--- server/display-channel.h | 7 ++- s

Re: [Spice-devel] [PATCH 01/16] UpgradeItem: use base PipeItem for refcounting

2016-04-21 Thread Frediano Ziglio
> > On Wed, 2016-04-20 at 04:18 -0400, Frediano Ziglio wrote: > > > > > > No need to re-implement refcounting in this subclass. However, I needed > > > to add a new 'dcc' member to UpgradeItem to be able to unref properly. > > > --- > > > Change since last patch: take ref on dcc > > > > > > ser

Re: [Spice-devel] [virt-tools-list] [PATCH] Disable IME to allow receiving all keys

2016-04-21 Thread Frediano Ziglio
> > On 04/21/16 01:17, Frediano Ziglio-san wrote: > >> > >> On Wed, Apr 20, 2016 at 05:37:52PM +0900, Takao Fujiwara wrote: > >>> My understanding is, Virt-Viewer with ImmDisableIME(-1) can send key > >>> events even if the title bar is focused when IME is enabled. > >>> I attached the screenshot