Comments (14)
I don't have a two-monitor setup so I couldn't reproduce your issue. Does sxiv also behave in this strange way, when you're only using one monitor?
from sxiv.
I was unable to get it to do anything weird with just one monitor.
from sxiv.
I've just install sxiv on my computer. I'm using XMonad with two screens and I do not experience any problems with sxiv. I tried tiled and floated it seems to work fine. Although I don't know what the next window is...
from sxiv.
On Mon, Mar 19, 2012 at 02:03:21 -0700, David Wagner wrote:
I've just install sxiv on my computer. I'm using XMonad with two
screens and I do not experience any problems with sxiv.
Hmm...I'll try bisecting my configuration then.
I tried tiled and floated it seems to work fine. Although I don't know
what the next window is...
I have bindings which modify where/how the next window will show up
(tiled/floating, unfocused/focused, below/above).
from sxiv.
Any news on this issue?
from sxiv.
I am closing this issue because it seems to be caused by user configuration.
from sxiv.
I am able to reproduce with a stock default XMonad configuration that floats all new windows. This is with sxiv 1.1 and XMonad 0.11.
from sxiv.
Ping?
from sxiv.
Does the issue#9
branch fix this issue for you? I hope that no one will whine about the new startup behaviour in case it does and is merged into master.
from sxiv.
It does, but I wonder if it'd be better to fix the win_init
function to get the current Xrandr screen rather than the Xlib screen definition (which does indeed straddle the monitors). Would you be adverse to using Xrandr for information (if the extension is available)? The win_env_t
would probably need to be updated on Xrandr change events and when it moves to a different screen.
from sxiv.
I do not want to fix this using Xrandr, because I think it's too much work for such a trivial thing. I rather rely on the window manager to center windows and I hope that the users of sxiv do so too.
from sxiv.
What's a WM going to do? If I'm floating windows, the window places itself. And the sxiv window isn't requesting that the WM center it; it's placing itself in a non-optimal position. To fix this, I'd have to first detect that I'm floating, check for sxiv then handle it specially. Doing this for umpteen apps is untenable; sxiv should just place itself properly.
Anyways, Xrandr doesn't seem to be necessary. Here is mpv's code to handle this (which works 100% for me).
from sxiv.
sxiv is placing itself in a non-optimal position? I've used lots of X applications over the years and a lot of them placed their window in the top left corner of the screen. If a user doesn't like this she typically wants all of her floating windows centered and that's where her window manager comes into play.
Using ~30 LOC depending on Xrandr/Xinerama just to center the window at startup is no option for me. And last time I've checked, I was the author of sxiv. And the last time I've checked the third sentence of the README said something like this: "The primary goal for writing sxiv is to create an image viewer, which only has the most basic features required for fast image viewing (the ones I want)."
I have almost no time at all to maintain sxiv. Fixing issues, adding features requested by users and merging pull requests with the possible burden to fix issues in the touched code later on does not pay my rent nor the food for my child.
from sxiv.
Top-left is fine with me as well, but it being centered on my monitor bezels is what is not optimal. I was suggesting ways it could be done to still center, but also support multiple monitors.
Either way, it seems that sxiv is feature complete for you, so it would be nice to mention in the readme that new things would have a very high barrier to acceptance would be nice (e.g., would something like webp, apng, or other format support be accepted if patches were made). Or consider a co-maintainer (I'm not applying; I also don't have much time to devote and sxiv is firmly in the "does the job well enough" category for me).
from sxiv.
Related Issues (20)
- AVIF (AV1 Image File Format) support HOT 2
- [question] Is it possible to suprress the title bar? HOT 5
- Trying to build on FreeBSD HOT 10
- SVG Support
- error opening tiny tga file HOT 3
- title can't include -
- Error when filename has an emoji HOT 1
- Alternative keybinding for i_toggle_animation
- How do I remove gaps / spaces around images? HOT 5
- sxiv cannot handle filenames with newlines in input mode HOT 1
- Feature request: add `-0` option to output files terminated by a null character HOT 1
- Embed option don't seems to work HOT 1
- Dependent fullscreen mode
- save filenames of marked files HOT 1
- Error opening X display HOT 1
- Support for opening JPEG-XL files HOT 1
- Links in README broken HOT 5
- How to make zoom and panning more smooth HOT 2
- GIFs play much more slowly when scaled up for fullscreen / larger window
- Should we unify our efforts to make a post-mortem Sxiv? HOT 74
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sxiv.