Dwm: some questions (e.g. bring floating window to the background)

Hi,
currently I'm diving into the world of tiling window managers (or at least I try to).
dwm looks nice and fast (with awesome I have the feeling that changing the master window takes much time/feels slow)
One thing I couldn't find out is how to bring a floating window to the background (or a tiled window to the foreground). Floating windows always stay on top so that they prevent mo from seeing every part of a tiled window.
Thanks in advance for your help
Barghest
Last edited by Barghest (2009-04-27 17:00:04)

Ok, I tried the raiselower patch but it seem it's not working. I created the file raiselower.c
void
raisewindow (const char *arg) {
if (!sel)
return;
if(!(sel->isfloating || lt->isfloating))
return;
if (!arg) {
XRaiseWindow(dpy, sel->win);
} else {
if (lt->isfloating)
XLowerWindow(dpy, sel->win);
else {
XWindowChanges wc;
wc.stack_mode = Above;
wc.sibling = barwin;
XConfigureWindow(dpy, sel->win, CWSibling | CWStackMode, &wc);
and added the line
#include "raiselower.c"
to my config.h but when I makepkg I receive the following message:
In file included from config.h:39,
from dwm.c:242:
raiselower.c: In Funktion »raisewindow«:
raiselower.c:5: Fehler: Anfrage nach Element »isfloating« in etwas, was keine Struktur oder Variante ist
raiselower.c:10: Fehler: Anfrage nach Element »isfloating« in etwas, was keine Struktur oder Variante ist
I try to translate : Request after element "isfloating" in something, that isn't a structure(?) or a variable/attribute
/edit: Ok, I also tried pertag but I think it doesn't work with the latest version of dwm. I can only switch the layout of a tag once. When I switch to another tag and back again, changing the layout doesn't work anymore (on no tag).
Last edited by Barghest (2009-04-27 19:29:53)

Similar Messages

  • How do I bring a window to the front from a different VM ?

    The problem I am facing is as follows:
    We have an application the loads a plugin which the starts another VM. This VM has some UI components as does the initial VM. I need to be able to bring a window from either VM to the front. It appears that Windows 2000 doesn't allows this.
    Any ideas ???
    Here is some sample code. Run it twice so you get two VMs.
    Thanks
    Olaf
    -----------Frame1.java---------------------
    package showwindow;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Frame1 extends JFrame {
    JPanel contentPane;
    BorderLayout borderLayout1 = new BorderLayout();
    JButton jButton1 = new JButton();
    //Construct the frame
    public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    contentPane = (JPanel) this.getContentPane();
    jButton1.setText("jButton1");
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
    contentPane.add(jButton1, BorderLayout.CENTER);
    //Overridden so we can exit when window is closed
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    -----------Application1.java---------------
    package showwindow;
    import javax.swing.UIManager;
    import java.awt.*;
    import java.awt.Window;
    public class Application1 {
    boolean packFrame = false;
    Frame1 frame;
    //Construct the application
    public Application1() {
    frame = new Frame1();
    //Validate frames that have preset sizes
    //Pack frames that have useful preferred size info, e.g. from their layout
    if (packFrame) {
    frame.pack();
    else {
    frame.validate();
    //Center the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height) {
    frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width) {
    frameSize.width = screenSize.width;
    frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    frame.setVisible(true);
    public Frame1 getFrame()
    return frame;
    //Main method
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception e) {
    e.printStackTrace();
    Application1 app = new Application1();
    while(true)
    app.getFrame().toFront();
    try
    Thread.currentThread().sleep(2000);
    catch(Exception e)

    From the j2sdk 1.4.1 API: http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Window.html#toFront()
    toFront()
    Some platforms do not allow Windows which own other Windows to appear on top of those owned Windows. Some platforms may not permit this VM to place its Windows above windows of native applications, or Windows of other VMs. This permission may depend on whether a Window in this VM is already focused. Every attempt will be made to move this Window as high as possible in the stacking order; however, developers should not assume that this method will move this Window above all other windows in every situation.
    Because of variations in native windowing systems, no guarantees about changes to the focused and active Windows can be made. Developers must never assume that this Window is the focused or active Window until this Window receives a WINDOW_GAINED_FOCUS or WINDOW_ACTIVATED event. On platforms where the top-most window is the focused window, this method will probably focus this Window, if it is not already focused.

  • Vertical tearing due to window in the background

    I noticed this today. When there's a scrolling terminal window behind Firefox, there is some tearing on the vertical edge of the window that's in the background.
    I'm running KDE 4.13 (just updated today), Nvidia 337.12 from the official repositories on a GTX580.
    Here's a small movie that demonstrates it: http://youtu.be/hLT5nrCog_g
    Has anyone seen this or know whether there's a fix for it?
    Last edited by mouseman (2014-04-19 16:31:07)

    My son was playing Guild Wars 2 in the back . I wanted to delete audio but I didn't have the tools available.
    Anyway, to answer your question its KDE 4.13 (just updated), latest Nvidia drivers from the official repositories on a GTX580.
    The problem doesn't exist on my laptop, intel video running OpenSuse/KDE.

  • How to run a safari window in the background at all times?

    Ok, so you are probably wondering why I want to do this. Allow me to explain. The website twitch.tv is a streaming service for gamers, and there is a browser plugin specifically for the site called betterttv.
    One feature of this plugin is that you will get a notification whenever someone you are following starts broadcasting, right in your notification center. But because its a browser plugin, and is specifically for this one website, it requires a safari window to be open with the website twitch.tv in order to push the notifications.
    So my question is... how can I make a browser window stay open at all times and run in the background with this website open so that I get my notifications? I had the idea that I could retain the window even when I "quit" safari, because I can run a seperate instance of it in the form of Webkit Nightly which isnt affected by safari not being running.
    But I am still oblivious as to how I would set up a window like this, and it has to start at login in addition to being running throughout the day. (I shut my Mac off at night.) Any amount of help would be appricated

    I'm well aware of how to minimize thanks, and it *is* possible to have a Safari window open if you quit it, because you can run it as a separate instance by using WebKit Nightly...
    I am just looking for the best way to set it up so that a WebKit Nightly window will open upon startup, navigate to that webpage, and hide itself. Preferably in the background. This could be done using a .command file or a startup script in automator. My question is.. What is the best direction to take?

  • Can i run windows in the background?

    hi there
    i have recently purchased a macbook pro 13" and i know that it is possible to split the hard disk to be able to install windows OS, but i was wondering if anyone knows if it is possible to leave windows running in the background and switch back to OSX?
    the reason i want to try and do this is because i have a USB device for my fish tank that monitors several peramitors and uploads them to an online account so i can see what is going on in my fish tank, however it needs a local piece of software for it to be able to do this and at the minute this is only available for windows hence my question, im hoping i can get around it by spliting my mac in this way but it needs to be able to run in the background as a parralel system.
    any help would be great.

    Hey,
    You can buy Virtual Machine apps such as VMware Fusion and Parallels Desktop for Mac and these will let you run Windows as a Virtual Machine (on top of Mac OS X). You can then run Windows programs as well as Mac ones.
    If you need any more help, please ask
    Connor

  • DLL Modal window in the background

    Hi all!
    I have a Borland C++ made DLL, which creates a modal window. The DLL function hasn't got any teststand specific parameters, since it is designed for general use.
    My problem is the following: I have a sequence, where I put i.e. a built-in message popup (modal) before the DLL function call. In this case my modal window is in the background, and the focus is on the teststand window.
    I've read the application notes dealing about this problem, but the solution written down there is via parameter passing the engine object (in my case this couldn't be done, because my DLL function is not just for teststand).
    Could anyone please help me in the problem?
    Thanks
    Dave

    Dave,
    Could you add the SeqContext parameter, but ignore it if it's zero? Then non-TestStand uses could just pass in a zero and it would ignore the TestStand specific code that makes the dialog modal to the TestStand execution it was called from. Another way might be to create two versions of the function, one for TestStand that includes the SeqContext, and one for non-TestStand use, and that one statically sets the SeqContext to zero and ignores the TestStand modal functions. This method is similar to the many of the 'FunctionName' and 'FunctionNameEx' functions that allow for different uses of the same functionality (although all the examples I tried looking for where examples of obsolete (deprecated) functions).
    I can't think of any other way you could do this without adding parameters.
    -Jack

  • Clicking on an application window in the background does not bring to front

    I keep several applications open at the same time and organize them with Spaces. Some applications share all Spaces like Mail, Safari, Messenger.
    The problem is when I have mail as the front application and then click on Safari's window, Safari doesn't come to the front. Mail still is in front.
    This happens alot and with several applications.
    In order to bring the app to front - I need to click on the apps icon in the dock.
    Is there a patch or fix for Leopard.

    Even worse, clicking on the icon in the dock isn't always helpful. Sometimes there is no way of bringing the document in front. I have to force quit the program, very annoying.
    The strange thing is, I can still open documents. I see them appear when I right-click on the icon in the dock. So the program isn't realy stuck. The mac is just unable to bring it to front.
    This happens a lot with InDesign and a co-worker of mine had the same problem in Exell.

  • [Awesome] Floating windows covering the taskbar.

    I was looking for a way to prevent the windows from covering the taskbar when setting them to float.
    To do this you must add "placement.no_offscreen(c)" to /usr/share/awesome/lib/awful/client.lua at the end of the floating.set function:
    function floating.set(c, s)
    local c = c or capi.client.focus
    if c and property.get(c, "floating") ~= s then
    property.set(c, "floating", s)
    local screen = c.screen
    if s == true then
    c:geometry(property.get(c, "floating_geometry"))
    end
    c.screen = screen
    capi.hooks.arrange()(c.screen)
    capi.hooks.property()(c, "floating")
    end
    placement.no_offscreen(c) --- here
    end
    This will place the client without it being outside the screen.
    Thanks, anrxc!
    *edit: use client.lua, instead of rc.lua (because of some issues with fullscreen apps, like youtube videos in fullscreen not covering the taskbar, mplayer, etc)
    Last edited by Boris Bolgradov (2009-09-24 15:45:02)

    anrxc wrote:You didn't see the awful.placement module? You can use the no_offscreen function which prevents floating clients from being placed outside the work area.
    Hm... I saw that, but didn't tried it, because I thought it wouldn't work because the reference says it prevents the windows from going off the screen (I thought the whole screen, including the taskbar/work area). Thanks!

  • NavigateToURL doesn't bring FireFox window to the front

    Just wondering if this is a bug that's likely to get fixed anytime soon.   Or is there something inherintely blocking it from working like something that would have to change in windows or firefox to make it work.   I'm only asking because I was going to start work on a work around, but that will likely be a bunch of work so I thought I'd check first.
    Thank you,
    -Eric

    Thanks for the update I appreciate the info.   For now I wrote a work around
    using NativeProcess in AIR2.   If we're on a Mac we just use navigateToURL,
    but if we're on a windows machine we locate firefox.exe and run it with the
    -new-tab argument.   Seems to work for now but it will be better to just use
    navigateToURL for both
    Thank you,
    -Eric

  • Is there some hideous ghoul (name Microsoft) creaping around in the background preventing me from seeing product pictures on Amazon, Ebay, et al?

    Sometimes when I attempt to access products on Amazon, Ebay, etc., I get a blank square with a picture of a camera obviously indicating the website cannot show the picture. However, when I then close Firefox and enter these websites using Internet Explorer I have no problem with images. I know this is probably some dirty little Microsoft trick, but is there a fix?

    As you can see below, when I right click, I have no such option.  In the User Account Settings, I'm operating as the "System Administrator".
    Any other suggestions?

  • Combining tiling and floating windows

    hi all,
    I am thinking about buying an external wide-screen monitor for my laptop. I want to use this monitor as a split-screen, but what I want is not entirely a tiling window manager. For example, I want the left side contain an editor and the right side contain the shell, web browser, etc. floating. So in a sense I want a combination of a tiling window manager and a floating window manager (the tiling is only for the split-screen).
    I have done a bit of searching and it seems it can be done. The following programs should make it possible:
    Tile-windows
    http://aur.archlinux.org/packages.php?ID=16168
    Whaw
    http://repetae.net/computer/whaw/
    Wumwum
    http://wumwum.sourceforge.net/
    Stiler
    http://aur.archlinux.org/packages.php?ID=25038
    And threads about this topic:
    http://bbs.archlinux.org/viewtopic.php?id=48048&p=1
    http://bbs.archlinux.org/viewtopic.php?id=64100
    I am thinking about using it with LXDE (i.e. Openbox window manager). My question is: does anybody have experience with any of the above programs (or a similar program not listed above)? I'm interested in how well these programs work and how easy it is to use them.
    Last edited by Bart(t (2009-08-27 20:49:57)

    I tested Whaw, Wumwum, and Pytyler:
    Whaw:
    Very intuitive to use for split screen (both vertical and horizontal split). Simply move the mouse to the top-left screen and click the two windows you want to view as split-screen. The only downside is that there aren't any keyboard shortcuts. Something like ctrl+l and ctrl+r for placing and resizing a window to the left or right side of the screen would be nice.
    Wumwum:
    I found wumwum a bit cumbersome to use. I have to cycle through various modes to accomplish the vertical split screen. Secondly, the split doesn't seem split perfectly. The left window is somewhat moved to the right. A bit annoying if the left window has a scroll bar, because only half of the scroll bar is visible then. I also couldn't find an easy way to maximize the window back (there is a full-screen option, but full-screen is not equivalent to maximized)
    Pytyler:
    Pytyler seems to brings a complete tiling window manger. It immediately places the main window in the left side of the screen and the other windows are vertically stacked in the right side. You can probably accomplish the vertical split screen if you use its workspace feauture, but then it requires more work to manage everything.
    Whaw is probaly the best option for simple vertical and horizontal splitting.
    Everything was tested on KDE 4.2.3.
    Note: The Grid plugin for Compiz also seems to do quite a nice job. There a video of it in action on youtube:
    http://www.youtube.com/watch?v=Z9hZb7blbVg

  • How to create floating windows in InDesign for images

    Hi guys, any help on this would be much appreciated.
    I'm designing a document in InDesign that will be exported as an interactive PDF, and within the pages, I have some thumbnail images which, once clicked, will need to open a floating window in the document with the full image. Just wondering if anyone could please help me out with some instructions on how to do so.
    I don't want it to open a browser window, therefore just attaching a hyperlink to a web address is not what I'm after. What I'm hoping is the images can be embedded within the document, and then activated once the thumbnail is clicked.
    Hope that makes sense but if you need me to clarify anything please ask.
    I'm using CS6.

    Go to Tv.Adobe and do a search for interactive and/or object states.
    One other note: search for the topic with workflow export to SWF and replace in PDF.
    If you don't want SWF, then only use buttons (no object states).
    If you don't mind Dutch, take a look at a video at my blog about pop up in PDF etc:
    http://fvdgeest-dtp.blogspot.nl/2012/10/interactieve-knoppen-in-pdf-zonder.html

  • Floating windows in Tiger, Right-Click

    As a fan of keyboard control I appreciate the extend to which Mac OS X is made simple without the use of a mouse. One thing I have not been able to figure out is how to close a floating window. For example, try this: "Get Info" on a folder or object in Finder by using Alt-Command-i; this brings up a floating window that does not share the ordinary properties of a Finder window, i.e. it cannot be closed with Command-w, it will not appear in Exposé operations, etc.
    You can use Control-F6 to give it focus and be able to cycle through its controls, but this seems to be only semi-focus. A Command-w action will still close the window behind it (or, if on Desktop, do nothing).
    Let me know if there is a way to close a floating window from the keyboard.
    Secondly, is there a surefire method for right clicking ('Control-Clicking') built-in to the operating system using only keyboard commands?
    Thanks for your help on this guys.
    iMac G5 1.8Ghz   Mac OS X (10.4.2)  
    iMac G5 1.8Ghz   Mac OS X (10.4.2)  

    Hello WickEd Z, I just checked and mine works fine! I can open Finder>Get info,
    then I can close any window just by the Command+W, so all I can think of is that you'll have to check & see your lay-out in System-preferences.

  • 3D full screen and floating window issue

    hey everyone,
    since the new pdf viewer (adobe acrobat 10) released i've got an issue with the 3d fullscreen and the floating window.
    the first photo below shows the default view in a 3d scene. if i'm selecting the floating window (or the fullscreen) there is a problem with the camera (position, targetPosition and the behavior).so the view is wrong and the position of all nodes in it, and up to now i am unable to fix it
    Does anyone has this problem as well and can help me?
    cheers frank

    hi good morning,
    i was on holiday for 5 days now so sorry my late answer. I tried to set the default view in the u3d model but it doesn't work as well
    i loaded up a file that does not work in fullscreen as well as in the floating window (http://www.fileuploadx.de/76685).
    The javascript errors at startup were evoked, because i deleted some models that aren't needed but the javascript tries to load it. But they don't have any effect to the scene so far.
    In the floating window (or fullscreen) something with the camera must be wrong. I deleted the buttons (you can see as billboards in the scene) and then it works. So i tried to figure out the problem and let me displayed the position of the camera after each rendering event simple by (console.println(scene.cameras.getByIndex(0).position). Even if I displayed all cameras, that were about 50 surprisingly, it was the same overall. If the scene is embedded in the pdf document the camera position changed as it has to be. In the floating window and in the fullscreen i did not record any changes of the camera ...
    does anybody has an idea ?!
    cheers frank
    ps: please use adobe reader 10 to see that issue. with version 9 everythings should work fine.

  • AwesomeWM floating window/client z-level?

    Sometimes my floating windows are behind tiled windows even when they have focus, and the only way to bring them to the front is to hit Mod-t to set them to always-on-top mode. Other times the floating windows show up in front of tiled windows when focused. There seems to be a z-level for windows, but I haven't been able to find any way to bring a floating window to the front without making it always-on-top. I checked the awful Lua reference (http://awesome.naquadah.org/doc/api/) under awful.client, but nothing there works.
    Is this just something that is not supported, or is it supported but not well documented? Or, I am just not properly RTFM-ing?

    thelastknowngod wrote:URxvt.urgentonbell: true
    This should be camelcased (urgentOnBell).
    thelastknowngod wrote:
    when irssi is starting up i can see that there is an error loading the notify.pl script. it says:
    Error in script notify:
    syntax error at ~/.irssi/scripts/autorun/notify.pl line 34, next token ???
    line 34:
    system("notify-send -t 7500 \"<span color='#ffffff'>".$title."</span>\""." \"".$text."\"");
    any ideas?
    I don't know what the error means exactly, but did you install libnotify?
    Last edited by tdy (2009-06-15 17:40:28)

Maybe you are looking for

  • How to reset my passcode on my iphone 3g

    i lost my passcode for my restriction on my iphone 3g, how can i reset it without locking my iphone cus my iphone 3g is unlock and jailbroken please help

  • Screen coming up with a sad faced Ipod with a ! next to it

    my ipod wont load at all and only gets as far as a screen where it shows an ipod with a sad face and a ! next to it with the website for apple support underneath it? It makes funny noises when its trying to load and doesnt get any further then the un

  • Nokia Software Updater Say's my device is incompat...

    Hi there, I have this new problem with Nokia Software Updater which says my device is incompatible..But when I downloaded NSU I searched for my phone and it appeared and it is Nokia 6280, I'm currently trying to resolve it but I need your advice plea

  • Am i on the right track for establishing my client connection with BC4J?

    I am developing web-application with BC4J JSP project now. However, I find the auto-generated page not that useful as they are not flexible enough. Then, I decided to write coding by myself. But the first problem is - how to write the coding for clie

  • Is there a way to choose what photos get sent to iPhoto?

    I love using photostream so that any pictue I take on my IPhone 4s is sent to iphoto but I don't like how every photo I take is automatically sent there... Some photos I take and then delete right away on my phone but still appear in Iphoto. Is there