[haiku-commits] haiku: hrev53315 - src/apps/autoraise

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 28 Jul 2019 16:34:26 -0400 (EDT)

hrev53315 adds 1 changeset to branch 'master'
old head: 14b62ae4dafb0bed95849aedef783268aa278a66
new head: 70e55f0046816acffc42115ea20f45fb9ce096be
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=70e55f004681+%5E14b62ae4dafb

----------------------------------------------------------------------------

70e55f004681: autoraise: fix debug build.
  
  Change-Id: I8ee35807eab8252dcb2399734fc5831f2b50690f
  Reviewed-on: https://review.haiku-os.org/c/1657
  Reviewed-by: waddlesplash <waddlesplash@xxxxxxxxx>

                                   [ Jérôme Duval <jerome.duval@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53315
Commit:      70e55f0046816acffc42115ea20f45fb9ce096be
URL:         https://git.haiku-os.org/haiku/commit/?id=70e55f004681
Author:      Jérôme Duval <jerome.duval@xxxxxxxxx>
Date:        Sun Jul 28 17:19:05 2019 UTC
Committer:   waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Sun Jul 28 20:34:23 2019 UTC

----------------------------------------------------------------------------

1 file changed, 8 insertions(+), 5 deletions(-)
src/apps/autoraise/AutoRaiseIcon.cpp | 13 ++++++++-----

----------------------------------------------------------------------------

diff --git a/src/apps/autoraise/AutoRaiseIcon.cpp 
b/src/apps/autoraise/AutoRaiseIcon.cpp
index 18530aaed0..c345f754a7 100644
--- a/src/apps/autoraise/AutoRaiseIcon.cpp
+++ b/src/apps/autoraise/AutoRaiseIcon.cpp
@@ -380,7 +380,7 @@ int32 fronter(void *arg)
                goto end; // don't touch windows if we changed workspace
        if (tv->last_raiser_thread != find_thread(NULL))
                goto end; // seems a newer one has been spawn, exit
-PRINT(("tok = %ld cw = %ld\n", tok, tv->current_window));
+PRINT(("tok = %" B_PRId32 " cw = %" B_PRId32 "\n", tok, tv->current_window));
        if (tok == tv->current_window) {
                bool doZoom = false;
                BRect zoomRect(0.0f, 0.0f, 10.0f, 10.0f);
@@ -422,7 +422,8 @@ int32 poller(void *arg)
                        free(wi);
                        wi = get_window_info(tl[i]);
                        if (wi) {
-PRINT(("wi [%ld] = %p, %ld %s\n", i, wi, wi->layer, ((struct 
client_window_info *)wi)->name));
+PRINT(("wi [%" B_PRId32 "] = %p, %" B_PRId32 " %s\n", i, wi, wi->layer,
+       ((struct client_window_info *)wi)->name));
                                if (wi->layer < 3) // we hit the desktop or a 
window not on this WS
                                        continue;
                                if ((wi->window_left > wi->window_right) || 
(wi->window_top > wi->window_bottom))
@@ -430,9 +431,11 @@ PRINT(("wi [%ld] = %p, %ld %s\n", i, wi, wi->layer, 
((struct client_window_info
                                if (wi->is_mini)
                                        continue;
 
-PRINT(("if (!%s && (%li, %li)isin(%li)(%li, %li, %li, %li) && (%li != %li) 
\n", wi->is_mini?"true":"false",
-       (long)mouse.x, (long)mouse.y, i, wi->window_left, wi->window_right,
-       wi->window_top, wi->window_bottom, wi->server_token, tok));
+PRINT(("if (!%s && (%li, %li)isin(%" B_PRId32 ")(%" B_PRId32 ", %" B_PRId32
+       ", %" B_PRId32 ", %" B_PRId32 ") && (%" B_PRId32 " != %" B_PRId32 ") 
\n",
+       wi->is_mini?"true":"false", (long)mouse.x, (long)mouse.y, i,
+       wi->window_left, wi->window_right, wi->window_top, wi->window_bottom,
+       wi->server_token, tok));
 
 
 


Other related posts:

  • » [haiku-commits] haiku: hrev53315 - src/apps/autoraise - waddlesplash