mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
allow set_foreground to be requested
This commit is contained in:
parent
0a675eae03
commit
77204cbe3e
@ -297,6 +297,17 @@ set_properties_now(WindowProperties &properties) {
|
||||
|
||||
properties.clear_z_order();
|
||||
}
|
||||
|
||||
if (properties.has_foreground() && properties.get_foreground()) {
|
||||
if (!SetForegroundWindow(_hWnd)) {
|
||||
windisplay_cat.warning()
|
||||
<< "SetForegroundWindow() failed!\n";
|
||||
} else {
|
||||
_properties.set_foreground(true);
|
||||
}
|
||||
|
||||
properties.clear_foreground();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user