Coder Social home page Coder Social logo

Comments (14)

xyb3rt avatar xyb3rt commented on August 16, 2024

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.

mathstuf avatar mathstuf commented on August 16, 2024

I was unable to get it to do anything weird with just one monitor.

from sxiv.

wagdav avatar wagdav commented on August 16, 2024

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.

mathstuf avatar mathstuf commented on August 16, 2024

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.

xyb3rt avatar xyb3rt commented on August 16, 2024

Any news on this issue?

from sxiv.

xyb3rt avatar xyb3rt commented on August 16, 2024

I am closing this issue because it seems to be caused by user configuration.

from sxiv.

mathstuf avatar mathstuf commented on August 16, 2024

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.

mathstuf avatar mathstuf commented on August 16, 2024

Ping?

from sxiv.

xyb3rt avatar xyb3rt commented on August 16, 2024

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.

mathstuf avatar mathstuf commented on August 16, 2024

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.

xyb3rt avatar xyb3rt commented on August 16, 2024

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.

mathstuf avatar mathstuf commented on August 16, 2024

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.

xyb3rt avatar xyb3rt commented on August 16, 2024

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.

mathstuf avatar mathstuf commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.