summaryrefslogtreecommitdiff
path: root/open-vm-tools/services/plugins/dndcp/xutils/xutils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'open-vm-tools/services/plugins/dndcp/xutils/xutils.cc')
-rw-r--r--open-vm-tools/services/plugins/dndcp/xutils/xutils.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/open-vm-tools/services/plugins/dndcp/xutils/xutils.cc b/open-vm-tools/services/plugins/dndcp/xutils/xutils.cc
index 2ed73269..15a0c32b 100644
--- a/open-vm-tools/services/plugins/dndcp/xutils/xutils.cc
+++ b/open-vm-tools/services/plugins/dndcp/xutils/xutils.cc
@@ -1,5 +1,5 @@
/*********************************************************
- * Copyright (C) 2008-2013 VMware, Inc. All rights reserved.
+ * Copyright (C) 2008-2015 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
@@ -990,6 +990,10 @@ GetMonitorWorkArea(Glib::RefPtr<Gdk::Screen> screen, // IN:
bool haveStrut = false;
NETWMStrutPartial strut = NETWMStrutPartial();
+ if (monitor != screen->get_monitor_at_window(gdkWindow)) {
+ continue;
+ }
+
/*
* The EWMH spec says that the new _NET_WM_STRUT_PARTIAL takes precedence
* over the older _NET_WM_STRUT API.