# HG changeset patch # User ib # Date 1358365436 0 # Node ID 9162585304d09a6b99004c4fd87704d06a301153 # Parent d1f84b21934058b3af81a9dda09422f38515301b Save the correct video window position. Additionally, remove the pointless assignment of the video window position in video.c, because that's already performed during the ConfigureNotify event. (As a result of this pointless assignment, the new video window position had only be saved if dragged with the left mouse button inside the window, not if dragged by the title bar.) diff -r d1f84b219340 -r 9162585304d0 gui/interface.c --- a/gui/interface.c Wed Jan 16 19:38:44 2013 +0000 +++ b/gui/interface.c Wed Jan 16 19:43:56 2013 +0000 @@ -266,8 +266,8 @@ if (gui_save_pos) { gui_main_pos_x = guiApp.mainWindow.X; gui_main_pos_y = guiApp.mainWindow.Y; - gui_video_pos_x = guiApp.video.x; - gui_video_pos_y = guiApp.video.y; + gui_video_pos_x = guiApp.videoWindow.X; + gui_video_pos_y = guiApp.videoWindow.Y; } ass_enabled = gtkASS.enabled; diff -r d1f84b219340 -r 9162585304d0 gui/ui/video.c --- a/gui/ui/video.c Wed Jan 16 19:38:44 2013 +0000 +++ b/gui/ui/video.c Wed Jan 16 19:43:56 2013 +0000 @@ -88,9 +88,6 @@ if ( !guiApp.videoWindow.isFullScreen ) { wsMoveWindow( &guiApp.videoWindow,True,RX - sx,RY - sy ); - guiApp.video.x = guiApp.videoWindow.X; - guiApp.video.y = guiApp.videoWindow.Y; - // NOTE TO MYSELF: dragging the title bar goes unnoticed? } break; case wsPMMouseButton: