File: border-0.patch

package info (click to toggle)
libcurses-widgets-perl 1.997-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 364 kB
  • ctags: 160
  • sloc: perl: 2,107; makefile: 3
file content (36 lines) | stat: -rw-r--r-- 948 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Author: David Moreno Garza <damog@debian.org>
Description: BORDER => 0 now displaying widgets
Bug: #341715

--- a/Widgets.pm
+++ b/Widgets.pm
@@ -719,6 +719,7 @@ sub draw {
   my $self = shift;
   my $mwh = shift;
   my $active = shift;
+  my $conf = $self->{CONF};
   my (@geom, $dwh, $cwh);
 
   # Get the canvas geometry and create a window handle to it
@@ -730,7 +731,7 @@ sub draw {
   $self->_caption($dwh);
 
   # Get the content area geometry and create a window handle to it
-  $cwh = $self->_canvas($dwh, $self->_cgeometry);
+  $cwh = $$conf{BORDER} ? $self->_canvas($dwh, $self->_cgeometry) : $dwh;
   unless (defined $cwh) {
     $dwh->delwin;
     return 0;
@@ -740,8 +741,10 @@ sub draw {
   $self->_cursor($cwh) if $active;
 
   # Flush the changes to the screen and release the window handles
-  $cwh->refresh;
-  $cwh->delwin;
+  if ($$conf{BORDER}) {
+  	$cwh->refresh;
+  	$cwh->delwin;
+  }
   $dwh->refresh;
   $dwh->delwin;