Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/NeutrinoRDP.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2019-04-12 01:15:57 +0300
committerJay Sorg <jay.sorg@gmail.com>2019-04-12 01:15:57 +0300
commitc461d2e20d3da31fe73168783ded296dd3347c03 (patch)
tree1433e65462352359d962f3865c12642052c34d3a
parent396451579b25951a391a71c7f1a25ec92169c738 (diff)
only send suppress output no if suppress output yes was sent
-rw-r--r--client/X11/xf_event.c7
-rw-r--r--client/X11/xfreerdp.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/client/X11/xf_event.c b/client/X11/xf_event.c
index 09dab33..76dce60 100644
--- a/client/X11/xf_event.c
+++ b/client/X11/xf_event.c
@@ -512,7 +512,11 @@ tbool xf_event_MapNotify(xfInfo* xfi, XEvent* event, tbool app)
if (app == false)
{
- xfi->instance->SendSuppressOutput(xfi->instance, 1, 0, 0, xfi->width, xfi->height);
+ if (xfi->suppress_output)
+ {
+ xfi->instance->SendSuppressOutput(xfi->instance, 1, 0, 0, xfi->width, xfi->height);
+ xfi->suppress_output = 0;
+ }
return true;
}
@@ -536,6 +540,7 @@ tbool xf_event_UnmapNotify(xfInfo* xfi, XEvent* event, tbool app)
if (app == false)
{
+ xfi->suppress_output = 1;
xfi->instance->SendSuppressOutput(xfi->instance, 0, 0, 0, 0, 0);
return true;
}
diff --git a/client/X11/xfreerdp.h b/client/X11/xfreerdp.h
index cfb695a..603d97a 100644
--- a/client/X11/xfreerdp.h
+++ b/client/X11/xfreerdp.h
@@ -181,6 +181,8 @@ struct xf_info
struct shm_info_t* shm_info;
int skip_bs;
int frameId;
+
+ int suppress_output;
};
void xf_toggle_fullscreen(xfInfo* xfi);