[haiku-commits] r42738 - haiku/trunk/src/apps/deskcalc

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 11 Sep 2011 15:45:03 +0200 (CEST)

Author: axeld
Date: 2011-09-11 15:45:01 +0200 (Sun, 11 Sep 2011)
New Revision: 42738
Changeset: https://dev.haiku-os.org/changeset/42738

Modified:
   haiku/trunk/src/apps/deskcalc/CalcWindow.cpp
Log:
* Made DeskCalc "not anchored on activate" meaning that instead of changing the
  workspace to an already open DeskCalc, it moves to the current workspace
  instead. That's because you usually use DeskCalc in the context of another
  application (or just for a single use), so it makes little sense to have sort
  of a fixed workspace for it.


Modified: haiku/trunk/src/apps/deskcalc/CalcWindow.cpp
===================================================================
--- haiku/trunk/src/apps/deskcalc/CalcWindow.cpp        2011-09-11 12:21:33 UTC 
(rev 42737)
+++ haiku/trunk/src/apps/deskcalc/CalcWindow.cpp        2011-09-11 13:45:01 UTC 
(rev 42738)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2006 Haiku, Inc. All Rights Reserved.
+ * Copyright 2006-2011 Haiku, Inc. All Rights Reserved.
  * Copyright 1997, 1998 R3 Software Ltd. All Rights Reserved.
  * Distributed under the terms of the MIT License.
  *
@@ -29,7 +29,7 @@
 CalcWindow::CalcWindow(BRect frame, BMessage* settings)
        :
        BWindow(frame, B_TRANSLATE_SYSTEM_NAME("DeskCalc"), B_TITLED_WINDOW,
-       B_ASYNCHRONOUS_CONTROLS)
+               B_ASYNCHRONOUS_CONTROLS | B_NOT_ANCHORED_ON_ACTIVATE)
 {
        // create calculator view with calculator description and
        // desktop background color


Other related posts:

  • » [haiku-commits] r42738 - haiku/trunk/src/apps/deskcalc - axeld