Commit Graph

104 Commits (4af189e7d9851f56a5d42a1d42658e8e47320f90)

Author SHA1 Message Date
Bert Münnich 8081cbebf3 Improve mouse support
None of the mouse mappings uses a keyboard modifier, making it possible to
access the most basic features by only using the mouse.

Next/previous image with left button depending on cursor position, middle
button for dragging, right button for switching to thumnail mode and wheel for
zooming.

Users can keep the old behaviour by simply not adapting the changes to the
buttons array in config.def.h to their config.h file.
7 years ago
Bert Münnich d81442f55d Own win method for mouse cursor location 7 years ago
Bert Münnich b8fd923e74 Simplify cursor handling 7 years ago
Bert Münnich e310136e02 Mouse drag translates pointer position to image area
This makes mouse panning more direct and faster.
7 years ago
Bert Münnich c772d3c3f3 Use -e for X window embedding 8 years ago
shuall 0b758e08f2 added support for XEMBED into other windows (ie tabbed) with -w 8 years ago
Bert Münnich c280129cef Use Xft for font loading and text drawing 8 years ago
Bert Münnich d3a70a285d Revised error handling
- Functions warn() and die() replaced by GNU-like error(3) function
- Register cleanup() with atexit(3)
- Functions called by cleanup() are marked with CLEANUP and are not allowed to
  call exit(3)
9 years ago
Bert Münnich 851e4288c1 Prefix safe allocation functions with 'e' instead of 's_' 9 years ago
Bert Münnich e574a6d0dd Removed feature test macro definitions from source files 9 years ago
Bert Münnich e0e96977b3 Removed overcautious parameter checks 9 years ago
Bert Münnich c33f2ad355 Corrected & refactored handling of window bar content...
Old snprintf calls could have overflowed the buffers.
10 years ago
Bert Münnich d0ba2c585d Simplified thumbnail selection and marks 10 years ago
Bert Münnich bb6721549b Overhauled window drawing, yet again; fixes issue #155
- Buffer for window content is bigger than the window, minimizes artifacts
  when window is resized
- Back to using XSetWindowBackgroundPixmap() instead of XCopyArea(),
  no need to handle exposure events; X server can show gray background directly
  after resize event before sxiv redraws the window contents
10 years ago
Bert Münnich 5d0679b855 Show key handler status in bar while it is running 10 years ago
Bert Münnich 0b83386bff Do not center window on screen, workaround for issue #9 10 years ago
Bert Münnich e685859a30 Use a checkerboard background for alpha layer; fixes issue #138 10 years ago
Bert Münnich 72f1b1ca6f Removed command line option -F 11 years ago
Bert Münnich 524d9de877 Removed fit-win-to-img command 11 years ago
Bert Münnich 2e758f78c1 Check if window manager supports fullscreen; related to issue #128 11 years ago
Bert Münnich e2fa49ecfe Unified X atom initialization 11 years ago
Bert Münnich 135c4f9263 Added window icons; fixes issue #125 11 years ago
Bert Münnich 593da23cf3 Use bgcol as window background pixel; fixed issue #89 11 years ago
Bert Münnich aac28cce7a Fixed non-ASCII characters in window bar, issue #88 11 years ago
Bert Münnich 30802cec0f Spawn info script & update bar contents only when needed 11 years ago
Bert Münnich f3298400e6 Spawn and read from info script without blocking 11 years ago
Bert Münnich c6bfac1566 Merge branch 'sizehints', fixed issue #78 12 years ago
Bert Münnich 1e2ddc44d8 No checks on window size, use whatever the user has specified 12 years ago
Bert Münnich a527025314 Correctly set window height after i_fit_to_img() 12 years ago
Bert Münnich cef8d51153 Refined US{Position,Size} & WinGravity handling 12 years ago
Bert Münnich bf41012493 Merge remote-tracking branch '4z3/set-user-specified-sizehints' into sizehints
Conflicts:
	window.c
12 years ago
Bert Münnich f7301cf4f9 Correctly updated window pixmap after i_fit_to_img() 12 years ago
Bert Münnich 08ae25da22 Refactored function definitions to use dangling brace 12 years ago
Bert Münnich 6d3bbc6d5e Updated/corrected license header 12 years ago
tv 3f25b907bd When using -g hint the WM that we've got user specified geometry
Without this some window managers (e.g. fvwm) will ignore the initial
window position and place it according to it's own rules.
12 years ago
muennich d6a475e4b1 Simplified status bar, filled by user script 12 years ago
Bert Münnich 69a6df2762 Merge branch 'winname' 12 years ago
Bert Münnich 22a8b66571 Fixed BadDrawable errors caused by invalid window pixmap 12 years ago
Bert Münnich 4a5d5d26aa Overhauled window drawing
- Draw onto pixmap as before, but use the same size for the pixmap as
  for the window, allocate new pixmap after configure requests
- Use XCopyArea() instead of XSetWindowBackgroundPixmap(), which now
  requires handling of Expose events
12 years ago
Bert Münnich 6f9b4f5b2e New option: -N, set X window resource name 12 years ago
Bert Münnich d5f0a20de0 Fixed WMProtocols registration order (before mapping window) 12 years ago
Bert Münnich bca3666862 Fixed issue #47 12 years ago
Bert Münnich 8ab3cee6a5 Fixed issue #44 12 years ago
Bert Münnich 3238ef6bf6 Fixed issue #41, added WIN_FS_COLOR to config.h 12 years ago
Bert Münnich ed2c9f7caa Display full name in info bar, if there is enough space 13 years ago
Bert Münnich 2d4264af28 Added option -b: disable bar 13 years ago
Bert Münnich c666d30eea Added it_toggle_bar command; default mapping: XK_b 13 years ago
Bert Münnich d407dd65d5 Already in the year 2012 13 years ago
Bert Münnich b752d5c594 Added symbol BAR_SEPARATOR 13 years ago
Bert Münnich 7177270c10 Changed default font string, removed missing fontset warnings 13 years ago