Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8531085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:24:09+00:00 2026-06-11T09:24:09+00:00

As described in this and this issue, my floating windows are sometimes rendered behind

  • 0

As described in this and this issue, my floating windows are sometimes rendered behind other windows when using xmonad together with compton. One possible workaround I want to try is to make xmonad move new floating windows slightly, which should render them above other windows. However, being new to xmonad and Haskell, I have no idea how to achieve this.

How do I tell xmonad “When a new floating window is created, move it one pixel to the right”?

(xmonad-0.10 and xmonad-contrib-0.10)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:24:10+00:00Added an answer on June 11, 2026 at 9:24 am

    For people coming here who really want to shift a window, here is how you do it:

    In your $HOME/.xmonad.xmonad.hs:

    Add some imports (you can skip existing, note the qualified import of Xmonad.StackSet and the “W.shift” below, you will have to adjust the name if you imported it under another name)

    import XMonad.Hooks.XPropManage
    import qualified XMonad.StackSet as W
    import XMonad.Actions.TagWindows
    import Data.List
    

    And add

    manageHook = xPropManageHook xPropMatches
    
    xPropMatches :: [XPropMatch]
    xPropMatches = [ ( [(wM_CLASS, any (const True))], (return (W.shift "2"))) ]
    

    that should work for all windows. If you want to control the matching,

    (const True)
    

    can be replaced with anything that has the type

    String -> Bool
    

    e.g.

    ("Vimperator" `isInfixOf`)
    

    etc

    Source:
    XPropManage

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we've implemented a system similar to the one described in this other SO post
This issue is a variation on the one described here: Eclipse buildpath automatically taking
I am using the code as described in this question. However get following error
I am using the method described in this question to load intial users for
My problem is extremely similar to the one described in this SO question ,
[EDITED] This issue was originally described as my having trouble with Perl's Socket, but
I was struggling with the issue described in this question (declaring a template function
I'm experiencing the problem described in this Android issue: http://code.google.com/p/android/issues/detail?id=4536 Simply put, after pressing
I know this issue already discussed (include there), and no one time. But, unfortunately,
So I have this page: http://demo.unlockedmanagement.com/example/floating-issue.html You will notice 3 items: Details, Attachements, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.