Giter Club home page Giter Club logo

shapecorners's People

Contributors

khanhas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

shapecorners's Issues

Uninstall

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

I can't see any shadows on anything

Hi, I started using this a few days ago, and I've been trying to add shadows to it, but I can't seem to get it to work. Is there something I'm doing wrong?
I'm using this on CachyOs which is based on Arch and currently using X11. Any input on resolving this issue would be great.

Screenshot_20240326_214306
Screenshot_20240326_214226
Screenshot_20240326_214716

Semi-translucent corners look buggy

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.

Make "SquareAtScreenEdge" handle multiple monitors

Hi guys.

This tool is just amazing and worked like a charm!.. Until I plugged an external monitor:
image

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):

image

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.

failed to build with KDE's master builds

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

Doesn't work on Plasma 5.21.2

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.