Screenshot: Don't take screenshot of open menu
...take screenshot of window with the menu open instead. menus are windows, this is an implementation detail.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include <TranslatorFormats.h>
|
||||
|
||||
#include <WindowInfo.h>
|
||||
#include <WindowPrivate.h>
|
||||
|
||||
#include "Utility.h"
|
||||
|
||||
@@ -307,7 +308,9 @@ Screenshot::_GetActiveWindowFrame()
|
||||
for (int i = 0; i < tokenCount; i++) {
|
||||
token = tokens[i];
|
||||
windowInfo = get_window_info(token);
|
||||
if (windowInfo && !windowInfo->is_mini
|
||||
if (windowInfo != NULL
|
||||
&& windowInfo->feel != kMenuWindowFeel
|
||||
&& !windowInfo->is_mini
|
||||
&& !(windowInfo->show_hide_level > 0)) {
|
||||
foundActiveWindow = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user