Skip to content

Commit

Permalink
Fixed bug when a null window was specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
naelstrof committed Oct 20, 2014
1 parent 5aa3e0b commit ec7ce8a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Make sure to check out and install [slop](https://github.com/naelstrof/slop) too
Join us on irc at freenode in *#maim*.

```text
maim v2.3.21
maim v2.3.22
Copyright (C) 2014 Dalton Nell, Maim Contributors (https://github.com/naelstrof/maim/graphs/contributors)
Expand Down
2 changes: 1 addition & 1 deletion src/cmdline.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extern "C" {

#ifndef CMDLINE_PARSER_VERSION
/** @brief the program version */
#define CMDLINE_PARSER_VERSION "v2.3.21"
#define CMDLINE_PARSER_VERSION "v2.3.22"
#endif

/** @brief Where the command line options are stored */
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ int app( int argc, char** argv ) {
window = (Window)options.windowid_arg;
// Since we have a window we need to turn root coords into our local window coords.
// but only if the user wants us to.
if ( !options.localize_flag ) {
if ( !options.localize_flag && window != None ) {
Window junk;
XTranslateCoordinates( xengine->m_display, xengine->m_root, window, x, y, &x, &y, &junk );
}
Expand Down
2 changes: 1 addition & 1 deletion src/options.ggo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package "maim"
version "v2.3.21"
version "v2.3.22"
purpose "Takes screenshots."
usage "maim [options] [file]"
description "maim (Make Image) is a utility that takes screenshots of your desktop using imlib2. It's meant to overcome shortcomings of scrot and performs better than scrot in several ways."
Expand Down

0 comments on commit ec7ce8a

Please sign in to comment.