Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-05-22 18:32:45

weasL
Member
Registered: 2013-05-22
Posts: 2

xfwm4 Tiling - Maximize Windows

First: I like XFCE, I use it all the day at work and in my opinion it is the best DE for a "Power User".

But: There is one thing that annoys me, the tiling behaviour when dragging windows to the top.
I think most people expect that the window gets maximized (like in Windows, with Compiz, in KDE).
I use 3 monitors and move windows often around, then it would be much better when you could maximize the window when you just drag it to the top.
Is there a chance that this feature gets implemented?
Maybe a config option that the user can select the tiling behaviour?

Offline

#2 2013-05-22 21:03:55

k-bag
Member
Registered: 2012-06-11
Posts: 15
Website

Re: xfwm4 Tiling - Maximize Windows

Hi.

You can easily define a keyboard shortcut for maximization into the window manager parameters.

Offline

#3 2013-05-22 22:16:49

weasL
Member
Registered: 2013-05-22
Posts: 2

Re: xfwm4 Tiling - Maximize Windows

Yes thats right, but it feels "not right".
I you use several pcs and use this "move" to maximize windows because it is almost standard (even in Windows) and then you switch so XFCE, make that "move" you get an unexcepted behaviour.
First time I used the tiling in 4.10 it confuses me, I searched hours to find a solution to change this behavior, and I ended up with installing compiz.
So i hope there will be an option to change this in the future.

Offline

#4 2013-05-23 12:40:13

stqn
Member
Registered: 2010-10-11
Posts: 168

Re: xfwm4 Tiling - Maximize Windows

Perhaps you could switch to the standard way of maximising windows, double clicking on the title bar.

Offline

#5 2013-05-23 18:20:30

MountainDewManiac
Member
From: USA police-state welfare-state
Registered: 2013-03-24
Posts: 260

Re: xfwm4 Tiling - Maximize Windows

stqn wrote:

Perhaps you could switch to the standard way of maximising windows, double clicking on the title bar.

...or clicking on the "Maximize/Restore" button on the end of the title bar, or pressing Alt-Space and typing x (or selecting Maximize from the list). Do we really need a fourth way to do this when the older, long-used methods work just fine (and which are not "almost standard," but are "actually standard")?

I don't have anything against providing multiple ways to do the same thing, per se, but shouldn't there be a point where people say, "101 ways to skin a dead cat are plenty, and any further effort to come up with yet another way is just wasted effort that would be better spent on something useful," lol?

I'd feel differently about this particular example if it did something useful in addition to maximizing - such as if a person has multiple monitors and wanted a function that both maximized the window and sent it to monitor #3, for example. But as it is being discussed now... <SCRATCHES HEAD> There's not much point in moving the window to the top (/bottom/left side/center/...) of the screen if you're just going to maximize it at the same time, is there?

Speaking of which, is there a convenient way to disable this... feature so that I don't end up inadvertantly stretching the window from the left edge of the screen all the way across to the right edge when I only wish to move it to the top of my display but (apparently) move my mouse cursor a tenth of a fraction of a quarter of an inch to far? It's extremely annoying.

Last edited by MountainDewManiac (2013-05-23 18:21:42)

Offline

#6 2013-05-23 18:47:32

stqn
Member
Registered: 2010-10-11
Posts: 168

Re: xfwm4 Tiling - Maximize Windows

MountainDewManiac wrote:

Speaking of which, is there a convenient way to disable this... feature so that I don't end up inadvertantly stretching the window from the left edge of the screen all the way across to the right edge when I only wish to move it to the top of my display but (apparently) move my mouse cursor a tenth of a fraction of a quarter of an inch to far? It's extremely annoying.

In Settings -> Window Manager Tweaks -> Accessibility, disable “Automatically tile windows when moving towards the screen edge”.

Offline

#7 2013-05-23 19:28:58

MountainDewManiac
Member
From: USA police-state welfare-state
Registered: 2013-03-24
Posts: 260

Re: xfwm4 Tiling - Maximize Windows

Thank you, stqn.

Re: The OP's question... Since this behavior can be turned on and off at the user's discretion, I wonder if it's also configurable to any extent (such as to do what he wishes it to do) somewhere in a file?

Offline

#8 2013-05-23 21:07:46

stqn
Member
Registered: 2010-10-11
Posts: 168

Re: xfwm4 Tiling - Maximize Windows

AFAIK any hidden configuration options would be accessible with xfconf-query. In this case:

xfconf-query -l -c xfwm4

The only option related to tiling I see is “/general/tile_on_move”.

Offline

#9 2014-03-19 05:33:47

debinux
Member
Registered: 2014-03-18
Posts: 1

Re: xfwm4 Tiling - Maximize Windows

Hi,

I found this topic and felt like sharing my little patch is a good thing to do:

You can modify src/client.c of xfwm4 to behave like this. Search for "tile_up" in this file and find this on line ~3152:

        switch (tile)
        {
            case TILE_UP:
                tmp_h = full_h;
                tmp_y = full_y / 2;
                clientMaxSpace (screen_info, &full_x, &tmp_y, &full_w, &tmp_h);
                wc->y = tmp_y + frameTop (c);
                wc->height = tmp_h - frameTop (c) - frameBottom (c);
                break;

Change it to

        switch (tile)
        {
            case TILE_UP:
                clientToggleMaximized (c, CLIENT_FLAG_MAXIMIZED_VERT, TRUE);
                break;

Offline

Board footer

Powered by FluxBB