Comments (7)
Also getting this, on multiple DEs, with maim -s
. Don't really know why it happens.
from slop.
I've figured out that this happens whenever steam
is running. Once steam has been killed, slop performs fine.
I'm not sure why this is or what it's detecting, since xev
isn't returning any keypresses when I focus it.
edit: can't reproduce anymore; the bug stopped happening for me. Until I have a better way to reproduce this, ignore the bit about steam.
The bit about xev
still stands, though.
from slop.
I had the same problem, added some debug output to x.ccp and started pressing keys on the keyboard to see the keycodes change...
Result: X thought my F10/VolumeUp key was stuck in pressed state, after pressing it with and without the fn button pressed slop runs and detects keypresses as expected (without my debug code)
diff --git a/src/x.cpp b/src/x.cpp
index a650ee5..0bb144b 100644
--- a/src/x.cpp
+++ b/src/x.cpp
@@ -19,6 +19,8 @@
*/
#include "x.hpp"
+#include<iostream>
+
slop::XEngine* xengine = new slop::XEngine();
int slop::XEngineErrorHandler( Display* dpy, XErrorEvent* event ) {
@@ -158,7 +160,8 @@ bool slop::XEngine::anyKeyPressed() {
// Every bit should be 0 if nothing is pressed.
for ( unsigned int i = 0; i < 32; i++ ) {
if ( keys[ i ] != 0 ) {
- return true;
+ std::cout << "Byte array: " << i << " is " << (int)keys[i] << "\n";
+ //return true;
}
}
return false;
--
2.10.2
from slop.
Should be fixed with https://github.com/naelstrof/slop/tree/slop-release-candidate. Could you tell me if the issue persists?
from slop.
@naelstrof Yes. It also works excellently.
from slop.
Thanks for the feedback!
from slop.
I'm encountering this today... Steam isn't running and I'm on the most recent version of slop (at least on apt): 4.2.20. I've been using slop for like a year so far and I've had no issues (and I've used it in a lot of contexts and it's been really resilient).
I'm calling slop -f "%g"
from slop.
Related Issues (20)
- Programmatically select region HOT 2
- strange behavior with --nodrag and moving started selection HOT 1
- transparency in shader HOT 8
- Using the "magnifying glass" (based on shaderexamples) to select a pixel HOT 4
- Optionally disable border drawing and highlighting of windows.
- Slop crashes randomly when selecting
- Expose rectangle start position to shaders HOT 6
- Feature Request: Add parameter to show coordinates and horizontal/vertical lines while selecting a point or region
- Feature Request: Option to output the size of the window
- Feature request: Exclude bars and window manager windows HOT 1
- Screen edge compensation causes misalignment in shader
- Feature request: Use a different window class name (WM_CLASS) for selection
- No compositor found HOT 1
- Feature request: Option to keep rectangle and refine selection
- Feature request: select window from command argument
- Feature request: get display geometry HOT 3
- Feature request: "Ruler" style croshair HOT 5
- Option to not build or install the dynamic library
- Support for high refresh rate monitors HOT 5
- Feature Request: Dimming unselected region. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slop.