khanhas / shapecorners Goto Github PK
View Code? Open in Web Editor NEWKDE effect rounds/chisels corners of your windows.
License: GNU General Public License v3.0
KDE effect rounds/chisels corners of your windows.
License: GNU General Public License v3.0
Sorry if this is a bit of a dumb question, but I can't seem to remove the rounded corners. I've deleted all the relevant files as I can see
Is there any possibility to filter by title or window type?
I was using KDE-Rounded-Corners but it stopped working when I upgraded to Neon 5.21. I found your code on google search and tried to install but there was same error on make
command.
Image.
First of all, thank you for delivering and updating of the aging TheRob code!
I like these rounded corners very much, but in fact I experience a bug: my corners sometimes show up OK and rounded, but in other conditions they are rough and I can see parts that were intended to be invisible. It occurs when dragging a window and as such changing the underlying background. Surely, words can't tell it nicely, so here is the image:
https://i.imgur.com/Cd7ZZwN.png
Can you please advise on how it is supposed to be fixed?
Thank you.
Hi guys.
This tool is just amazing and worked like a charm!.. Until I plugged an external monitor:
I'm using a dual-head setup, laptop(on the left) + monitor (on the right), and as you can see, the SquareAtScreenEdge
does not handle more than one monitor. SquareAtScreenEdge
works as expected in the other corners (the actual edges of the virtual screen):
My setup:
OS: Manjaro 21.1.0 Pahvo
Kernel: x86_64 Linux 5.10.59-1-MANJARO
Resolution: 2966x900
DE: KDE 5.85.0 / Plasma 5.22.4
WM: KWin
GTK Theme: Breeze [GTK2/3]
I'll try to work on a solution and send a pull request, but I don't have much time available, so if anyone can help sending a quick fix, that would be great!
Best regards.
Here's what it showed
[ 25%] Automatic MOC for target kwin4_effect_shapecorners
AutoMoc warning
---------------
"SRC:/shapecorners.cpp"
includes the moc file "shapecorners.moc", but does not contain a Q_OBJECT, Q_GADGET, Q_NAMESPACE, Q_NAMESPACE_EXPORT, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON, K_PLUGIN_CLASS_WITH_JSON, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON, K_PLUGIN_CLASS_WITH_JSON, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON, K_PLUGIN_CLASS_WITH_JSON, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON, K_PLUGIN_CLASS_WITH_JSON, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON, K_PLUGIN_CLASS_WITH_JSON, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON, K_PLUGIN_CLASS_WITH_JSON, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON, K_PLUGIN_CLASS_WITH_JSON, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON or K_PLUGIN_CLASS_WITH_JSON macro.
[ 25%] Built target kwin4_effect_shapecorners_autogen
[ 50%] Building CXX object CMakeFiles/kwin4_effect_shapecorners.dir/kwin4_effect_shapecorners_autogen/mocs_compilation.cpp.o
[ 75%] Building CXX object CMakeFiles/kwin4_effect_shapecorners.dir/shapecorners.cpp.o
In file included from /home/silas/Applications/ShapeCorners/shapecorners.cpp:30:
/home/silas/Applications/ShapeCorners/shapecorners.h:38:10: warning: ‘virtual void ShapeCornersEffect::reconfigure(KWin::Effect::ReconfigureFlags)’ can be marked override [-Wsuggest-override]
38 | void reconfigure(ReconfigureFlags flags);
| ^~~~~~~~~~~
/home/silas/Applications/ShapeCorners/shapecorners.h:40:10: warning: ‘virtual void ShapeCornersEffect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&)’ can be marked override [-Wsuggest-override]
40 | void paintWindow (KWin::EffectWindow* w, int mask, QRegion region, KWin::WindowPaintData& data);
| ^~~~~~~~~~~
/home/silas/Applications/ShapeCorners/shapecorners.h:41:9: warning: ‘virtual int ShapeCornersEffect::requestedEffectChainPosition() const’ can be marked override [-Wsuggest-override]
41 | int requestedEffectChainPosition() const { return 100; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/silas/Applications/ShapeCorners/shapecorners.cpp: In member function ‘virtual void ShapeCornersEffect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&)’:
/home/silas/Applications/ShapeCorners/shapecorners.cpp:233:39: error: ‘class KWin::WindowPaintData’ has no member named ‘quads’
233 | KWin::WindowQuadList qds(data.quads);
| ^~~~~
/home/silas/Applications/ShapeCorners/shapecorners.cpp:236:22: error: ‘class KWin::WindowPaintData’ has no member named ‘quads’
236 | data.quads = qds.filterOut(KWin::WindowQuadShadow);
| ^~~~~
/home/silas/Applications/ShapeCorners/shapecorners.cpp:236:34: error: ‘class KWin::WindowQuadList’ has no member named ‘filterOut’
236 | data.quads = qds.filterOut(KWin::WindowQuadShadow);
| ^~~~~~~~~
/home/silas/Applications/ShapeCorners/shapecorners.cpp:236:50: error: ‘WindowQuadShadow’ is not a member of ‘KWin’; did you mean ‘WindowQuadList’?
236 | data.quads = qds.filterOut(KWin::WindowQuadShadow);
| ^~~~~~~~~~~~~~~~
| WindowQuadList
/home/silas/Applications/ShapeCorners/shapecorners.cpp:246:36: warning: ‘virtual QRect KWin::EffectWindow::geometry() const’ is deprecated [-Wdeprecated-declarations]
246 | const QRect geo(w->geometry());
| ~~~~~~~~~~~^~
In file included from /home/silas/Applications/ShapeCorners/shapecorners.h:21,
from /home/silas/Applications/ShapeCorners/shapecorners.cpp:30:
/usr/include/kwineffects.h:2273:35: note: declared here
2273 | virtual QRect KWIN_DEPRECATED geometry() const = 0;
| ^~~~~~~~
/home/silas/Applications/ShapeCorners/shapecorners.cpp:254:33: error: no matching function for call to ‘KWin::GLTexture::GLTexture()’
254 | KWin::GLTexture tex[NTex];
| ^
In file included from /usr/include/kwinglutils.h:17,
from /home/silas/Applications/ShapeCorners/shapecorners.cpp:26:
/usr/include/kwingltexture.h:148:5: note: candidate: ‘KWin::GLTexture::GLTexture(KWin::GLTexturePrivate&)’
148 | GLTexture(GLTexturePrivate& dd);
| ^~~~~~~~~
/usr/include/kwingltexture.h:148:5: note: candidate expects 1 argument, 0 provided
/usr/include/kwingltexture.h:64:14: note: candidate: ‘KWin::GLTexture::GLTexture(GLuint, GLenum, const QSize&, int)’
64 | explicit GLTexture(GLuint textureId, GLenum internalFormat, const QSize &size, int levels = 1);
| ^~~~~~~~~
/usr/include/kwingltexture.h:64:14: note: candidate expects 4 arguments, 0 provided
/usr/include/kwingltexture.h:50:14: note: candidate: ‘KWin::GLTexture::GLTexture(GLenum, const QSize&, int, bool)’
50 | explicit GLTexture(GLenum internalFormat, const QSize &size, int levels = 1, bool needsMutability = false);
| ^~~~~~~~~
/usr/include/kwingltexture.h:50:14: note: candidate expects 4 arguments, 0 provided
/usr/include/kwingltexture.h:49:5: note: candidate: ‘KWin::GLTexture::GLTexture(GLenum, int, int, int, bool)’
49 | GLTexture(GLenum internalFormat, int width, int height, int levels = 1, bool needsMutability = false);
| ^~~~~~~~~
/usr/include/kwingltexture.h:49:5: note: candidate expects 5 arguments, 0 provided
/usr/include/kwingltexture.h:48:14: note: candidate: ‘KWin::GLTexture::GLTexture(const QString&)’
48 | explicit GLTexture(const QString& fileName);
| ^~~~~~~~~
/usr/include/kwingltexture.h:48:14: note: candidate expects 1 argument, 0 provided
/usr/include/kwingltexture.h:47:14: note: candidate: ‘KWin::GLTexture::GLTexture(const QPixmap&, GLenum)’
47 | explicit GLTexture(const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D);
| ^~~~~~~~~
/usr/include/kwingltexture.h:47:14: note: candidate expects 2 arguments, 0 provided
/usr/include/kwingltexture.h:46:14: note: candidate: ‘KWin::GLTexture::GLTexture(const QImage&, GLenum)’
46 | explicit GLTexture(const QImage& image, GLenum target = GL_TEXTURE_2D);
| ^~~~~~~~~
/usr/include/kwingltexture.h:46:14: note: candidate expects 2 arguments, 0 provided
/usr/include/kwingltexture.h:45:5: note: candidate: ‘KWin::GLTexture::GLTexture(const KWin::GLTexture&)’
45 | GLTexture(const GLTexture& tex);
| ^~~~~~~~~
/usr/include/kwingltexture.h:45:5: note: candidate expects 1 argument, 0 provided
/usr/include/kwingltexture.h:44:14: note: candidate: ‘KWin::GLTexture::GLTexture(GLenum)’
44 | explicit GLTexture(GLenum target);
| ^~~~~~~~~
/usr/include/kwingltexture.h:44:14: note: candidate expects 1 argument, 0 provided
/home/silas/Applications/ShapeCorners/shapecorners.cpp:307:14: error: ‘class KWin::WindowPaintData’ has no member named ‘quads’
307 | data.quads = qds;
| ^~~~~
make[2]: *** [CMakeFiles/kwin4_effect_shapecorners.dir/build.make:90: CMakeFiles/kwin4_effect_shapecorners.dir/shapecorners.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/kwin4_effect_shapecorners.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Am using this script in conjunction with bismuth
How can I install this on arch linux based distros?
I'm using Plasma 5.21.2 on Arch Linux and everything seems to compile and install correctly but when I type kwin_x11 --replace &
the window corners look exactly like before.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.