Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 pdf-presenter-console (4.4.0-1) unstable; urgency=medium
 .
   * Wrap long lines in changelog entries: 4.0.6-1.
   * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
     Repository-Browse.
   * Update standards version to 4.5.0, no changes needed.
   * Debhelper 13
Author: Barak A. Pearlmutter <bap@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2020-05-29

--- pdf-presenter-console-4.4.0.orig/README.rst
+++ pdf-presenter-console-4.4.0/README.rst
@@ -65,8 +65,8 @@ Installation
 Sample presentations
 ====================
 
-- `Simple demo <https://github.com/pdfpc/pdfpc/releases/download/v4.3.0/pdfpc-demo.pdf>`_
-- `Embedded movies <https://github.com/pdfpc/pdfpc/releases/download/v4.3.0/pdfpc-video-example.zip>`_
+- `Simple demo <https://github.com/pdfpc/pdfpc/releases/latest/download/pdfpc-demo.pdf>`_
+- `Embedded movies <https://github.com/pdfpc/pdfpc/releases/latest/download/pdfpc-video-example.zip>`_
 
 Usage
 =====
--- pdf-presenter-console-4.4.0.orig/latex/Makefile
+++ pdf-presenter-console-4.4.0/latex/Makefile
@@ -5,5 +5,11 @@ all: validate
 validate: build
 	cd $(FILE); ctan-o-mat $(FILE).pkg
 
-build:
-	cd $(FILE); latex $(FILE).ins; ctanify $(FILE).ins README.md
+build-doc:
+	cd $(FILE); pdflatex $(FILE)-doc.dtx; mv $(FILE)-doc.pdf $(FILE).pdf
+
+build-src:
+	cd $(FILE); latex $(FILE).ins
+
+build: build-src build-doc
+	cd $(FILE); ctanify $(FILE).ins $(FILE).pdf README.md
--- /dev/null
+++ pdf-presenter-console-4.4.0/latex/pdfpc/pdfpc-doc.dtx
@@ -0,0 +1,141 @@
+%\iffalse
+%  Doc-Source file to use with LaTeX2e
+%
+%  This file is part of pdfpc.
+%  Copyright (C) 2020 Evgeny Stambulchik
+%
+%  This program is free software; you can redistribute it and/or modify
+%  it under the terms of the GNU General Public License as published by
+%  the Free Software Foundation; either version 3 of the License, or
+%  (at your option) any later version.
+%
+%  This program is distributed in the hope that it will be useful,
+%  but WITHOUT ANY WARRANTY; without even the implied warranty of
+%  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+%  GNU General Public License for more details.
+%
+%  You should have received a copy of the GNU General Public License along
+%  with this program; if not, write to the Free Software Foundation, Inc.,
+%  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+%  -------------------------------------------------------------------------------------------
+%
+%  Allow for defining some meta data and simple textual notes for use
+%  with the pdfpc presentation application <https://pdfpc.github.io>.
+%
+%  -------------------------------------------------------------------------------------------
+%
+%  Inspired by Carsten Brandt's <https://github.com/cebe/pdfpc-latex-notes>.
+%
+%  -------------------------------------------------------------------------------------------
+%
+%  Please report bugs and other problems as well as suggestions for improvements
+%  to the issue tracker at github <https://github.com/pdfpc/pdfpc/>
+%
+%  -------------------------------------------------------------------------------------------
+%\fi
+
+% !TeX spellcheck=en_US
+
+\documentclass[11pt]{ltxdoc}
+
+\usepackage{iftex}
+
+\usepackage[english]{babel}
+
+\usepackage{hyperref}
+
+\newcommand*{\sty}[1]{\textsf{#1}}
+\def\param#1{\textit{\rmfamily\mdseries\ensuremath{\langle}#1\ensuremath{\rangle}}}
+
+
+\title{The \sty{pdfpc} package \\ {\large\url{https://github.com/pdfpc/pdfpc}}}
+\author{Evgeny Stambulchik}
+\date{2020/03/07 (v0.2.1)}
+
+\hypersetup{pdftitle={The pdfpc package}, pdfauthor={Evgeny Stambulchik}}
+
+\begin{document}
+\maketitle
+\thispagestyle{empty}
+
+\begin{abstract}
+This package provides  a convenient way to specify notes and to define certain
+meta  properties  of the  presentation when used with
+\href{https://pdfpc.github.io/}{PDF Presenter Console (\texttt{pdfpc}), a
+GPLv2+ licensed multi-monitor PDF presentation viewer application available on
+GitHub}\footnote{\url{https://pdfpc.github.io/}}.
+\end{abstract}
+
+\clearpage
+\section*{Dependencies and other requirements}
+
+\sty{pdfpc} requires the use of \LaTeXe.
+
+It depends on the following packages:
+
+\begin{multicols}{4}\sffamily\centering
+kvoptions \\ xstring \\ pdfcomment \\ hyperxmp
+\end{multicols}
+
+\section*{License}
+
+\textcopyright\ 2020 Evgeny Stambulchik
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
+
+This work consists of the following files:
+
+\begin{itemize}
+    \item "pdfpc.dtx",
+    \item "pdfpc.ins" and
+    \item "pdfpc-doc.dtx"
+\end{itemize}
+
+\clearpage
+
+\part{The documentation}
+\section*{Loading \sty{pdfpc}}
+
+Load \sty{pdfpc} by adding \cmd{\usepackage{pdfpc}} to your preamble.
+
+The following \param{options} may be given as comma-separated list:
+
+\begin{itemize}
+\item \texttt{duration}
+\item \texttt{starttime}
+\item \texttt{endtime}
+\item \texttt{enduserslide}
+\item \texttt{lastminutes}
+\item \texttt{overridenote}
+\end{itemize}
+
+The meaning and possible values are documented in \textit{pdfpcrc(5)} man page
+of the pdfpc program.
+
+To add a note to a slide:
+
+{\leftskip2.5em%
+\cmd{\pdfpcnote\{Text of a note\}}
+}\par
+
+The pdfpc package can be used standalone or together with beamer. In
+the later case, it may be desirable to continue using the \cmd{\note}
+command. To this end, the overridenote option should be provided.
+Please note though, that this will work only in simple cases.
+
+If you prefer using full-featured beamer notes rendered alongside the
+presentation (\cmd{\setbeameroption\{show notes on second screen\}}), the pdfpc
+package will autodetect it, so using the --notes command-line option is
+unnecessary. To override the autodetection, use the notesposition option,
+accepting the same values (right/left/top/bottom/none).
+
+\StopEventually{%
+    \clearpage
+    \PrintChanges}
+\clearpage
+
+\Finale
+\end{document}
--- pdf-presenter-console-4.4.0.orig/latex/pdfpc/pdfpc.dtx
+++ pdf-presenter-console-4.4.0/latex/pdfpc/pdfpc.dtx
@@ -55,7 +55,7 @@
 %
 % Identify the package and force \LaTeXe:
 %    \begin{macrocode}
-\ProvidesPackage{pdfpc}[2019/12/03 v0.2 PDFPC]
+\ProvidesPackage{pdfpc}[2019/12/03 v0.2.1 PDFPC]
 \NeedsTeXFormat{LaTeX2e}
 %    \end{macrocode}
 %
@@ -89,14 +89,12 @@
     {\PackageWarningNoLine{pdfpc}{`duration' should be an integer}}%
 \fi
 %
-\ifx\PDFPC@duration\@empty
 \ifx\PDFPC@enduserslide\@empty
 \else
   \IfInteger{\PDFPC@enduserslide}{}
     {\PackageWarningNoLine{pdfpc}{`enduserslide' should be an integer}}%
 \fi
 %
-\ifx\PDFPC@duration\@empty
 \ifx\PDFPC@lastminutes\@empty
 \else
   \IfInteger{\PDFPC@lastminutes}{}
--- pdf-presenter-console-4.4.0.orig/latex/pdfpc/pdfpc.pkg
+++ pdf-presenter-console-4.4.0/latex/pdfpc/pdfpc.pkg
@@ -1,5 +1,6 @@
 \pkg{pdfpc}
-\version{0.2}
+\version{0.2.1}
+\update{true}
 \author{Evgeny Stambulchik}
 \email{andreas@bilke.org}
 \uploader{Andreas Bilke}
--- pdf-presenter-console-4.4.0.orig/man/pdfpc.in
+++ pdf-presenter-console-4.4.0/man/pdfpc.in
@@ -579,35 +579,13 @@ the \fBGetNotes\fR method, three propert
 .PP
 A tiny LaTeX package is available for pdfpc at CTAN. It provides a convenient
 way to specify notes and to define certain meta properties of the presentation.
-This functionality is often sufficient to avoid using \fB.pdfpc\fR files, thus
-allowing for preparing fully self-contained presentation slides. The usage is:
+For a full documentation, please consult the pdfpc package documentation. You
+can open it with:
 
 .RS
-\\usepackage[options]{pdfpc}
+$ texdoc pdfpc
 .RE
 
-The possible options are \fBduration\fR, \fBstarttime\fR, \fBendtime\fR,
-\fBenduserslide\fR, \fBlastminutes\fR, and \fBoverridenote\fR. The first five
-correspond to the similarly named \fB.pdfpc\fR or command-line options (and
-accept arguments in the same formats).
-
-To add a note to a slide:
-
-.RS
-\\pdfpcnote{<Text of a note>}
-.RE
-
-The \fBpdfpc\fR package can be used standalone or together with beamer. In the
-later case, it may be desirable to continue using the \\note command. To this
-end, the \fBoverridenote\fR option should be provided. Please note though, that
-this will work only in simple cases.
-
-If you prefer using full-featured beamer notes rendered alongside the
-presentation (\\setbeameroption{show notes on second screen}), the \fBpdfpc\fR
-package will autodetect it, so using the \fB\-\-notes\fR command-line option is
-unnecessary. To override the autodetection, use the \fBnotesposition\fR option,
-accepting the same values (right/left/top/bottom/none).
-
 .SH BUGS
 
 .PP
--- pdf-presenter-console-4.4.0.orig/src/classes/metadata/pdf.vala
+++ pdf-presenter-console-4.4.0/src/classes/metadata/pdf.vala
@@ -501,6 +501,9 @@ namespace pdfpc.Metadata {
                         case "EndTime":
                             this.end_time = entry.value;
                             break;
+                        case "LastMinutes":
+                            Options.last_minutes = int.parse(entry.value);
+                            break;
                         case "NotesPosition":
                             this.notes_position =
                                 NotesPosition.from_string(entry.value);
--- pdf-presenter-console-4.4.0.orig/src/classes/presentation_controller.vala
+++ pdf-presenter-console-4.4.0/src/classes/presentation_controller.vala
@@ -1737,7 +1737,6 @@ namespace pdfpc {
                 this.pen_drawing.clear_storage();
                 this.clear_pen_drawing();
 
-                this.overview.set_n_slides(this.user_n_slides);
                 this.metadata.renderer.invalidate_cache();
                 this.reload_request();
                 this.controllables_update();
--- pdf-presenter-console-4.4.0.orig/src/classes/window/fullscreen.vala
+++ pdf-presenter-console-4.4.0/src/classes/window/fullscreen.vala
@@ -343,8 +343,7 @@ namespace pdfpc.Window {
                 context.set_source_surface(drawing_surface, 0, 0);
                 context.paint();
                 context.set_matrix(old_xform);
-                if (this.is_presenter && c.in_drawing_mode() &&
-                    !c.pointer_hidden) {
+                if (this.is_presenter && c.in_drawing_mode()) {
                     double width_adjustment = (double) a.width / base_width;
                     context.set_operator(Cairo.Operator.OVER);
                     context.set_line_width(2.0);
--- pdf-presenter-console-4.4.0.orig/src/classes/window/presenter.vala
+++ pdf-presenter-console-4.4.0/src/classes/window/presenter.vala
@@ -872,6 +872,7 @@ namespace pdfpc.Window {
             this.next_view.invalidate();
             this.strict_next_view.invalidate();
             this.strict_prev_view.invalidate();
+            this.overview.set_n_slides(this.controller.user_n_slides);
         }
 
         public void update() {
--- pdf-presenter-console-4.4.0.orig/src/pdfpc.vala
+++ pdf-presenter-console-4.4.0/src/pdfpc.vala
@@ -147,7 +147,7 @@ namespace pdfpc {
          * Print version string and copyright statement
          */
         private void print_version() {
-            GLib.print("pdfpc v4.4.0\n"
+            GLib.print("pdfpc v4.4.1pre\n"
                      + "Copyright (C) 2010-2020 see CONTRIBUTORS\n\n"
                      + "License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl-2.0.html>.\n"
                      + "This is free software: you are free to change and redistribute it.\n"
