Hugo Pereira Da Costa and Thomas Luebking are geniuses. If you’ve used KDE 4.5, you’ve probably noticed that you can now drag windows by selecting any blank area. You’ve also probably read that, as expected, this only works with Qt apps. How does such hackery work? What in Qt allows this kind of interaction? How can a window decoration enable such an interaction with the window manager? How do we know which events on which widgets to intercept? I suggest that if you haven’t already seen it, you give oxygenwindowmanager.cpp a close read. It’s extremely educational.

August 14, 2010 · [Print]

6 Comments to “Oxygen Window Dragging”

  1. Johannes Burgel says:

    I find this pretty annoying because now every time you “miss” a widget and start dragging – e.g. when trying to resize a table column or a separator – you move the whole window, and as it seems there is no easy way to deactivate this feature.

    And the behavior is broken when dragging full-screen windows, they get de-maximized before the dragging starts.

    • Execute “oxygen-settings” in your terminal or in krunner and on the first tab of the first section there’s a combo box for controlling the behavior. Turn it off if you don’t dig it.

  2. Chani says:

    I turned this off today, actually. it’s just too easy to trigger it by accident when I’m trying to do drag&drop in the middle of some app.

    however, un-maximizing when moving is a feature, not a bug. :)

  3. nuno says:

    If you find any miss behavior on this feature, please report ASP to the Oxygen team, so far Hugo as been really responsive in fixing any issue.

    Plus as this feature becomes more usual in KDE/Qt apps, UI interfaces will take it more in account and prevent unwanted triggers of the feature, the ease of use it provides vastly surpasses the negative side effects….
    For example you can now make the win-deco extremely small and save allot of screen space, specially useful on small screens, + anyone now can drag a window that is bigger than the screen to hit a button that got off screen, The alt plus click and drag feature is not very discoverable for Joe user IMO this is much more transparent.

    @Johannes maybe we can do something about your problem.

  4. 10110111 says:

    Stupid feature. Almost any WM will move the window by any part of it when you press Alt, so this new feature is unusable.

Leave a Reply