Hello community, here is the log from the commit of package tigervnc for openSUSE:Factory checked in at 2014-10-14 07:10:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tigervnc (Old) and /work/SRC/openSUSE:Factory/.tigervnc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tigervnc" Changes: -------- --- /work/SRC/openSUSE:Factory/tigervnc/tigervnc.changes 2014-08-29 17:42:54.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.tigervnc.new/tigervnc.changes 2014-10-14 07:10:21.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Oct 13 11:51:03 UTC 2014 - [email protected] + +- u_tigervnc-use_preferred_mode.patch + * Mark user chosen resolution as preferred. (bnc#896540) + +------------------------------------------------------------------- New: ---- u_tigervnc-use_preferred_mode.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tigervnc.spec ++++++ --- /var/tmp/diff_new_pack.M1Y1jN/_old 2014-10-14 07:10:22.000000000 +0200 +++ /var/tmp/diff_new_pack.M1Y1jN/_new 2014-10-14 07:10:22.000000000 +0200 @@ -112,6 +112,7 @@ Patch8: n_tigervnc-date-time.patch Patch9: U_include-vencrypt-only-if-any-subtype-present.patch Patch10: u_tigervnc-check-shm-harder.patch +Patch11: u_tigervnc-use_preferred_mode.patch # Xserver patches Patch20: tigervnc-1.2.80-fix-int-to-pointer.patch @@ -155,6 +156,7 @@ %patch8 -p1 %patch9 -p0 %patch10 -p0 +%patch11 -p0 pushd unix/xserver patch -p1 < ../xserver114.patch ++++++ u_tigervnc-use_preferred_mode.patch ++++++ Author: Michal Srb <[email protected]> Subject: Use preferred mode. Patch-Mainline: To be upstreamed References: bnc#896540 If there is any resolution specified with -geometry or -screen parameters, report this resolution as preferred one. That way desktop environments won't change it immediately after start. Index: unix/xserver/hw/vnc/xvnc.cc =================================================================== --- unix/xserver/hw/vnc/xvnc.cc (revision 5186) +++ unix/xserver/hw/vnc/xvnc.cc (working copy) @@ -1319,12 +1319,22 @@ /* Make sure the CRTC has this output set */ vncRandRCrtcSet(pScreen, crtc, NULL, 0, 0, RR_Rotate_0, 1, &output); - /* Populate a list of default modes */ - RRModePtr modes[sizeof(vncRandRWidths)/sizeof(*vncRandRWidths)]; - int num_modes; + /* Populate a list of modes */ + RRModePtr modes[sizeof(vncRandRWidths)/sizeof(*vncRandRWidths) + 1]; + int num_modes = 0; - num_modes = 0; + /* Start with requested mode */ + mode = vncRandRModeGet(pScreen->width, pScreen->height); + if(mode != NULL) { + modes[num_modes] = mode; + num_modes++; + } + + /* Add default modes */ for (int i = 0;i < sizeof(vncRandRWidths)/sizeof(*vncRandRWidths);i++) { + if (vncRandRWidths[i] == pScreen->width && vncRandRHeights[i] == pScreen->height) + continue; + mode = vncRandRModeGet(vncRandRWidths[i], vncRandRHeights[i]); if (mode != NULL) { modes[num_modes] = mode; @@ -1332,7 +1342,7 @@ } } - RROutputSetModes(output, modes, num_modes, 0); + RROutputSetModes(output, modes, num_modes, 1); return crtc; } -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
