! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Make the ability to resize a window dragging it's top border configurable
Status:
RESOLVED: WORKSFORME
Severity:
enhancement

Comments

Description Alexander Iliev 2009-04-24 08:11:58 CEST
I would really like if the ability to resize a window dragging it's top border is configurable.

I'm used to constantly shading and unshading my windows, and a big part of my windows are located at the top of the screen (meaning their top border is stuck to the screen top edge). In Xfce 4.4 I used to drag my cursor to the top edge and scroll my mouse's wheel up/down to shade/unshade a window. Currently I can't because, when the cursor gets to the top of the screen, it becomes a resize cursor and the shade/unshare doesn't work.

Also, it was (at least for me) more confortable to move windows this way.
Comment 1 Alexander Iliev 2009-04-24 08:16:59 CEST
Some more thoughts on this:

An alternative solution would be to make it possible to shade/unshade a window while the cursor is above the top border and the pointer is the one for resizing. The downside will be that this way it won't be possible to click-and-drag to titlebar in order to move the window, which was also an ability I was used to in 4.4.
Comment 2 Jelle de Jong 2009-04-24 09:06:46 CEST
I had this issue on my todo list for creating bug reports for. I am using
xfwm version 4.6.1-1 on debian unstable. And when I have a window that is
located tot the top of the screen, it is very user unfriendly to resize
the windows instead of moving the windows when moving the cursor to the
top of the border and left clicking on it. Maybe this feature is only
useful when the windows is not located at the edge of a screen size.

I would like to discus the removal of this behavior or change the defaults. So I want to go a little further then the original poster of this bug report, I would like to see the defaults or the complete behavior changed.

Thanks in advance,

Best regards,

Jelle
Comment 3 Olivier Fourdan editbugs 2009-04-25 21:19:51 CEST
Huh no, sorry, I am against making this an option.
Comment 4 Alexander Iliev 2009-04-27 08:58:41 CEST
Created attachment 2326 
A patch, enabling the user to shade the window when the cursor is over the top border.
Comment 5 Alexander Iliev 2009-04-27 09:00:53 CEST
Please, consider applying the attached patch.

The patch enables shading the window, while the cursor is over the top border. I think it won't hurt anyone to apply this. :)

I'm attaching also a patch which additionally makes the window be moved instead of resized if the window is positioned at the top of the screen (as desribed in comment #2). This has a problem, though - the mouse cursor is displayed as if the window will be resized until the user clicks the mouse button - so the second patch is somewhat incomplete. But if you consider applying it, I'll try to send a complete solution for this.
Comment 6 Alexander Iliev 2009-04-27 09:02:14 CEST
Created attachment 2327 
A patch enabling the user to shade the window when over the top border and when the window is at the top of the screen - to move it instead of resizing it.
Comment 7 Alexander Iliev 2009-04-27 19:56:50 CEST
One more proposal - this patch (once again) enables shading/unshading when over the top border and allows moving the window when right-clicked on the top border.

Thus no extra configuration options will be added.

(documentation patch included)
Comment 8 Alexander Iliev 2009-04-27 20:00:14 CEST
Created attachment 2328 
A patch, enabling the user to shade the window when the cursor is over the top border and move the window using the right mouse button.
Comment 9 Jelle de Jong 2009-04-27 20:06:51 CEST
Alexander, since you are doing such hard work, is it possible to just make a single patch that only disables the new resizing feature when the windows is not maximized and the top window border is on the upper edge of the screen? and allow a left click in this upper top position of the cursor to move the window?
Comment 10 Alexander Iliev 2009-04-27 20:25:22 CEST
Jelle,

The second attached patch (http://bugzilla.xfce.org/attachment.cgi?id=2327) does just what you describe, with the problem, described in the last paragraph of comment #5.

I doubt this version of the patch will make it in subversion, because it affects the people who wanted the resize by the top border feature. I hope the third version of the patch will be considered more unintrusive, since it does not really affect those people.
Comment 11 Jelle de Jong 2009-04-27 20:29:38 CEST
(In reply to comment #10)
> Jelle,
> 
> The second attached patch (http://bugzilla.xfce.org/attachment.cgi?id=2327)
> does just what you describe, with the problem, described in the last paragraph
> of comment #5.
> 

Does it only disable the resize feature when the windows top border is on the top of the screen, since the resize feature is useful when the window is not on the top of the screen
Comment 12 Alexander Iliev 2009-04-27 20:32:55 CEST
(In reply to comment #11)
> Does it only disable the resize feature when the windows top border is on the
> top of the screen, since the resize feature is useful when the window is not on
> the top of the screen

Yes, it does just that. :)
Comment 13 Alexander Iliev 2009-04-28 10:50:38 CEST
Created attachment 2329 
shade-move-right-click-4.6-2.patch

Improved version of the previous patch (namely - the ability to resize window with alt + right click is not lost)
Comment 14 Steve Dodier-Lazaro editbugs 2015-02-16 21:26:23 CET
Five years later, I cannot make sense of this report / reproduce the original issue. I'm going to assume the problem was fixed, and will mark it as closed.

Otherwise, could you please provide precise steps to reproduce the original issue? Thanks.