no-titlebars: Fixed windows not dragged above the top of the screen

This commit is contained in:
pelya
2017-03-31 03:21:18 +03:00
parent 1329335de0
commit 86337b4ef7

View File

@@ -2205,7 +2205,7 @@ static void EnsureVisibleCaption(Window *w, int nx, int ny)
caption_rect.right = caption->pos_x + caption->current_x;
caption_rect.top = caption->pos_y;
caption_rect.bottom = caption->pos_y + caption->current_y;
if (_settings_client.gui.windows_titlebars) {
if (!_settings_client.gui.windows_titlebars) {
caption_rect.left = w->left;
caption_rect.right = w->left + w->width;
}