Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-01-31 15:05:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-31 15:05:09 +0400
commitdbf54dacf7e3fabe6ccb0e36a1743c91ac445b28 (patch)
tree6bdfa69792ad78750fe5bee51a63e1fd70e3d2ff /source/blender
parent73f301c3a8a28dd25ea850a54d968fc6c4f2b83e (diff)
Add Xinerama support for GHOST_GetMainDisplayDimensions() so X11 works as it should (previously would include all monitors).
Now the active monitor size is used on startup. Currently the cursor position is checked for intersection with the monitor bounds to find the active screen.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_fcurve.c1
-rw-r--r--source/blender/windowmanager/intern/wm_window.c13
2 files changed, 3 insertions, 11 deletions
diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c
index fbc91012a35..1b3c6ef70bb 100644
--- a/source/blender/makesrna/intern/rna_fcurve.c
+++ b/source/blender/makesrna/intern/rna_fcurve.c
@@ -647,7 +647,6 @@ static FCM_EnvelopeData *rna_FModifierEnvelope_points_add(FModifier *fmod, Repor
fed.f1 = fed.f2 = 0;
if (env->data) {
- /* add point to end of control points */
short exists = -1;
i = BKE_fcm_envelope_find_index(env->data, frame, env->totvert, &exists);
if (exists) {
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index a5f30fc5c62..caf4e2bd1ac 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -436,18 +436,11 @@ void wm_window_add_ghostwindows(wmWindowManager *wm)
wm_set_apple_prefsize(wm_init_state.size_x, wm_init_state.size_y);
}
#else
- /* default size when un-maximized, unless the screen(s) are smaller */
-
- /* clamp by these arbitrary values because currently wm_get_screensize()
- * will span multiple monitors and using xinerama isnt totally reliable
- * since we don't which monitor the window manager will put the blender
- * window in. */
- wm_init_state.size_x = MIN2(1800, wm_init_state.size_x - 100);
- wm_init_state.size_y = MIN2(980, wm_init_state.size_y - 100);
-
+ /* note!, this isnt quite correct, active screen maybe offset 1000s if PX,
+ * we'd need a wm_get_screensize like function that gives offset,
+ * in practice the window manager will likely move to the correct monitor */
wm_init_state.start_x = 0;
wm_init_state.start_y = 0;
-
#endif
}