Comments (7)
Related, gtk4 removed signal size allocate altogether:
https://developer.gnome.org/gtk4/stable/ch40s02.html "Adapt to GtkWidget’s size allocation changes"
from wf-shell.
If you add a debug log inside the lamda (which resets wm struts) you will see that it gets called (when size is normal)
a few dozen times per second while you move the mouse over window-list.
Seems like we should cache the last requested size and recreate the wm struts only if the new size is different than the previous one.
from wf-shell.
I believe the resize signal (have to check if that's in gtk3, mentioned in the link) would fix this but I have to try it yet
from wf-shell.
That would be even better indeed
from wf-shell.
btw, meanwhile I have found an easy fix for gtk3 instead of putting widgets in a scolled window put the whole panel_box in a scrolled view. Behaviour would be slightly different but no 5% cpu utilization
from wf-shell.
Hey, that's a good idea, it would also solve the problem in the cases where the widgets themselves are too many. Do you have a PR which you can send? :)
from wf-shell.
My codebase is way too different and when I'm finished I will focus on PR'ing something for wayfire,
bug fixes where I can etc. I wanted to share my solution though :)
The only thing that's comprable is that it can take gtk widget into a box and uses the wf-shell for autohiding :)
(e.g I don't used preffered size for panel, but fixed)
But the changes are not many, remove scrolled_window from window list and wrap the panel box into a scrolled window.
additionally I find it better that the scollbars are always visible, although a problem there is that the scroll direction
is implicitly vertical when you are over the content, so gtk forces you to hover the scrollbar to hover. (for horizontal panels)
// TODO: vertical bug, button size is panel width and non overlay adds size of scrollbar
if (panel->is_horizontal)
panel->scrolled_window.set_overlay_scrolling(FALSE);
from wf-shell.
Related Issues (20)
- Volume Control - Launch a sound control manager app via right-click HOT 1
- make window-list height resizeable HOT 3
- volume control slider not in sync with mouse scroll HOT 1
- Windows doesn't go to right position when minimizing HOT 5
- can't use asbsolute path for command_output icons HOT 1
- Wf-backgroud crashes after disconnecting external monitor. HOT 8
- printf only partially works on command_output HOT 3
- Pressing super key for workspace overview opens menu on every workspace HOT 1
- subprojects/gvc outdated (5 years old) HOT 2
- panel crashes if problems with icons HOT 1
- Not showing WLAN interface on FreeBSD 14 HOT 1
- wf-panel doesn't seem to open certain apps HOT 10
- window-list high cpu usage when full
- latest commits change some expected panel behavior HOT 3
- default.css will not update to newer contents automatically
- Just a showcase
- Panel tray icon behaving unexpectedly (icon size animations) HOT 2
- moveable panel
- [Feature Request] Add Pager widget and support for per-workspace tasks HOT 2
- Suggestions for Command-outputs and a little issue with WCM
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 wf-shell.