-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login



Sponsoring


-
- Content .- Fans  . 

Screen Snapping

   1.0  

KWin Scripts

Score 50%
Minimum required   KDE 4.x
Downloads:  145
Submitted:  Feb 6 2014

Description:

NOTICE:
-------------
installation via GHNS won\'t get you the config dialog.
Instead download the file and install it by

plasmapkg -i screenSnapping.kwinscript -t kwinscript

---
This overrides stock screen snapping and snaps to the decoration directly (unlike snap-to-deco which fixes the position after the actual snap and stopping the movement)

In addition, vertical, horizontal, inner and outer snap distance can be configured independently.




LicenseGPL
Send to a friend
Subscribe
Other  Artwork  from thomas12777
Report inappropriate content



-

 Doesn't work with dual screens

 
 by spacecase-25 on: May 8 2014
 
Score 50%

Works well on screen edges, but doesn't work at all (no snapping enabled) at joining screen edges when using more than one monitor (normally Kwin would snap windows on these edges). Can this be added? Thanks.


Reply to this

-

 Re: Doesn't work with dual screens

 
 by spacecase-25 on: May 8 2014
 
Score 50%

Actually there is snapping with this script enabled, but there's overhang between the two screens.


Reply to this

-

 Re: Re: Doesn't work with dual screens

 
 by thomas12777 on: May 8 2014
 
Score 50%

It's supposed to work since the matching is done to

var area = workspace.clientArea(KWin.WorkArea, workspace.activeScreen, workspace.currentDesktop);

and the algorithm doesn't make differences between inner and outer screen edged.

It also works as expected here.
Can you please post the output of "xrandr -q"?


Reply to this

-

 Re: Re: Re: Doesn't work with dual screens

 
 by spacecase-25 on: May 8 2014
 
Score 50%

ben@arch-desktop:~$ xrandr -q
Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 16384 x 16384
DFP1 disconnected (normal left inverted right x axis y axis)
DFP2 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 495mm x 310mm
1920x1200 59.95*+
1920x1080 59.95
1600x1200 59.95
1680x1050 59.95
1400x1050 59.95
1280x1024 59.95
1440x900 59.95
1280x960 59.95
1280x800 59.95
1280x768 59.95
1280x720 59.95
1024x768 59.95
800x600 59.95
640x480 59.95
DFP3 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 444mm x 249mm
1920x1080 59.80*+ 59.94 60.00 59.94
1776x1000 59.94 59.94
1680x1050 59.94 59.80
1400x1050 59.94 59.80
1600x900 59.94
1280x1024 59.94 59.80
1440x900 59.94
1280x960 60.00
1360x768 60.02
1280x768 60.00
1280x720 60.00 59.94
1024x768 60.00
1152x648 59.94
800x600 60.32
720x480 60.00 59.94
640x480 59.94
CRT1 disconnected (normal left inverted right x axis y axis)


Reply to this

-

 Re: Re: Re: Re: Doesn't work with dual screens

 
 by thomas12777 on: May 8 2014
 
Score 50%

Hmm - simple horizontal strip. Looks like mine.

Do you have window snapping enabled and/or could there be windows or panels (latter don't require window snapping) that couls impact the behavior?


Reply to this

-

 Re: Re: Re: Re: Re: Doesn't work with dual screens

 
 by spacecase-25 on: May 9 2014
 
Score 50%

Center snapping was actually disabled (oops). However, with it enabled, this is infact an issue. This is also an issue when windows are opened in the "center" of my screen, so despite my original complaint being invalid, there's still a bug here.

Thanks for all your time working this through with me.


Reply to this

-

 Re: Re: Re: Re: Re: Re: Doesn't work with dual scr

 
 by thomas12777 on: May 10 2014
 
Score 50%

Let's see whether we can sort that out ;-)

Center snapping was disabled but window snapping enabled?
And as result windows would snap to other windows and by this bleed into the other screen?

Was/is the window snapping distance bigger than the screen snapping distance?

(Maybe you could upload a screenshot of the problematic setting and constellation, ie. windows "mis-snapped"?)



-

 Re: Re: Re: Re: Re: Re: Doesn't work with dual scr

 
 by spacecase-25 on: May 11 2014
 
Score 50%

I'm not sure what you're asking, but here's a screenshot. Look closely at the circled regions. You can clearly see overlap onto the second screen. All other snapping works just fine.

http://i.imgur.com/9nR9ZoZ.jpg



-

 Re: Re: Re: Re: Re: Re: Doesn't work with dual scr

 
 by thomas12777 on: May 11 2014
 
Score 50%

Thanks a lot - that looks like an "off-by-one" issue, but doesn't occur here.

Do you get the same for the oxygen decoration?

If not:
what decoration do you use (some aurorae theme I assume) and does it also happen when suspending the compositor (Shift+Alt+F12)?



-

 Works on my Dual Monitor Setup -- Thanks!

 
 by davesp on: May 9 2014
 
Score 50%

Thank you for this!

The KDE devs may have forgotten that they can set side borders to zero width if they so highly value their screen real estate. Then they could have spared us this aggravation.

This is the first time I had to install a KWinScript to fix an issue (which shouldn't have been introduced in the first place).

Well done!


Reply to this

-

 Thanks!

 
 by jstalnak on: Jul 1 2014
 
Score 50%
jstalnakjstalnak
University of Wisconsin-Ma dison
-
Guy Stalnaker 0

University of Wisconsin-Madison
United States of America, Madison
Last visit Jul 1 2014
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

This is the solution I was looking for. You might want to add to the description that users need to go to their System Settings > Window Behavior > KWin Scripts to enable it.


Reply to this

Add commentBack






-

-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore




 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
News RSS   
Discussion RSS   
Events RSS   

Participate
Groups
Forum
Add Artwork
Public API
About KDE-Look.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2001-2014 KDE-Look.org Team  
All rights reserved. KDE-Look.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.