[haiku-development] WindowAt fix
- From: Váradi Zsolt Gyula <karmaxxl@xxxxxxxxx>
- To: Haiku Development List <haiku-development@xxxxxxxxxxxxx>
- Date: Tue, 31 Jul 2007 22:30:31 +0200
Hi everyone!
After spending a day and some nights, I've realized what was wrong with
WindowAt!
It works now, and also fixes People's (#1308) and Launchbox's closing
problem.
Could you please also test it then commit it to SVN?
Thanks,
Zsolt
PS: Should I close People's bug report?
Index: src/kits/app/Application.cpp
===================================================================
--- src/kits/app/Application.cpp (revision 21775)
+++ src/kits/app/Application.cpp (working copy)
@@ -1461,8 +1461,8 @@
uint32 count = gLooperList.CountLoopers();
for (uint32 i = 0; i < count && index < count; i++) {
BWindow* window =
dynamic_cast<BWindow*>(gLooperList.LooperAt(i));
- if (window == NULL || (!includeMenus
- && dynamic_cast<BMenuWindow *>(window) ==
NULL)) {
+ if (window == NULL && (!includeMenus
+ || dynamic_cast<BMenuWindow *>(window) ==
NULL)) {
index++;
continue;
}
- Follow-Ups:
- [haiku-development] Re: WindowAt fix
- From: Jérôme Duval
Other related posts:
- [haiku-development] Re: WindowAt fix
- From: Jérôme Duval