[vlc-commits] display: remove write-only value

Rémi Denis-Courmont git at videolan.org
Sun May 20 19:51:54 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri May 18 21:30:09 2018 +0300| [51b7252391b81a50a8ce75179427766a82e65ac2] | committer: Rémi Denis-Courmont

display: remove write-only value

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=51b7252391b81a50a8ce75179427766a82e65ac2
---

 src/video_output/display.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index e6e7db52a9..555bb156ef 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -347,7 +347,6 @@ typedef struct {
     bool window_fullscreen;
     bool ch_wm_state;
     unsigned wm_state;
-    unsigned wm_state_initial;
 #endif
     bool ch_sar;
     vlc_rational_t sar;
@@ -787,13 +786,10 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
         }
 #if defined(_WIN32) || defined(__OS2__)
         /* */
-        if (ch_wm_state) {
-            if (vout_display_Control(vd, VOUT_DISPLAY_CHANGE_WINDOW_STATE, wm_state)) {
-                msg_Err(vd, "Failed to set on top");
-                wm_state = osys->wm_state;
-            }
-            osys->wm_state_initial = wm_state;
-        }
+        if (ch_wm_state
+         && vout_display_Control(vd, VOUT_DISPLAY_CHANGE_WINDOW_STATE,
+                                 wm_state))
+            msg_Err(vd, "Failed to set on top");
 #endif
         /* */
         if (osys->ch_sar) {
@@ -1111,7 +1107,6 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
                                            source, &cfg_windowed);
     }
 
-    osys->wm_state_initial = VOUT_WINDOW_STATE_NORMAL;
     osys->wm_state = state->wm_state;
     osys->ch_wm_state = true;
 #endif



More information about the vlc-commits mailing list