]> git.saurik.com Git - wxWidgets.git/commit - src/unix/displayx11.cpp
Ensure that client display rectangle is always less than its total area.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 28 Dec 2012 00:44:09 +0000 (00:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 28 Dec 2012 00:44:09 +0000 (00:44 +0000)
commitdee05929ba3eaccc583b289edebe2465b5308b42
treef4263f3a12825bf0f4b3844d65921a426b98ea33
parent3bb9348f9394c3e283ef93d743f7309dc4c4d708
Ensure that client display rectangle is always less than its total area.

Under Unix we could return client display rectangle that was bigger than the
entire display size as it corresponded to the total screen size when
_NET_WORKAREA was not supported or was not correctly implemented by the WM.

Fix this by explicitly intersecting the client rect with the total one.

Closes #14419.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/unix/displayx11.cpp