Comments (18)
Wonder if this is wayland related. I saw the same and fixed the issue under X. See the screenshots in issue #37. It is likely settings dialog is also off centered. Not sure why it still is present under wayland.
from ecrire.
Settings are centered. If you resize with settings open things don't look good.
Ie. > https://www.enlightenment.org/ss/display.php?image=e-5b953bfc855331.08438811.png
from ecrire.
That is odd about settings being centered but not the file dialog. Before settings was slightly off in my first comments on #37. I will have to look into getting settings bound to the window. Like the save, discard, cancel dialog. That is a popup vs inwin, so bit different. But that does resize when the window is resized. Nothing else does file nor settings
from ecrire.
@ApostolosB see if recent changes makes any difference. I did fix the re-sizing issue with settings. Not sure why settings is centered properly and the file dialog is not. Really curious what happens with the file dialog when you resize. Since it starts off centered. I wonder if that ever corrects with the recent changes. Likely no change with settings, other than it re-sizing when the window is resized.
I should not have to add code to handle resizing of the window for elm_inwin
. But seems there is some side effect from using efl_part
. Which I need for getting the background color, for alpha settings purposes. Anytime I call efl_part
, it causes issues for the inwin's. It makes them off centered, both settings and file dialogs. I had to add code to resize the inwin to the size of the window to fix the centering. That was what caused them to not re-size when the window resized. Which I added code so when the window is resized it resizes the inwin.
Despite these modifications, the file dialog may remain off centered. I am not sure why the file dialog is not centered and the settings dialog is centered. That maybe a Wayland specific issue. If no change on resize with file dialog. I will have to test under Wayland.
from ecrire.
Hopefully that last commit fixes the centering issue with the file dialog. I was settings its geometry using values from the config file rather than from the window itself. For settings I got the geometry from the window. That was the main difference between file and settings dialogs. Now it is the same for both. Which should correct the file dialog centering. Since settings was centered correctly.
If it does not fix the issue, then I will have to test under Wayland.
from ecrire.
Both seem to work ok unless you resize smaller (in the case of settings also larger -but that is not as ugly) than the size of them where you get:
This:
https://www.enlightenment.org/ss/display.php?image=e-5b96cf2febf050.99870154.png
And this:
https://www.enlightenment.org/ss/display.php?image=e-5b96cfa26a4bf4.85682480.png
This could be an efl bug so i'll ask the devs tomorrow.
from ecrire.
I think something is off in Wayland. It looks nothing like that in X11. What does settings look like when larger?
This is what it looks like under X11. I can make it pretty tiny and it is always within the window. Just not really usable when smaller than pictured.
from ecrire.
Larger:
https://www.enlightenment.org/ss/display.php?image=e-5b96d879e6fbd5.09483499.png
from ecrire.
That is what it looked like for me before I made the change to resize when you change window size. Seems like that is not happening in Wayland. It should scale with the window.
from ecrire.
May want to double check you building from latest git head. If you are then my recent changes did not seem to help much. Other than making the file dialog visible again. I guess that is something, but should address the resizing issue as well.
from ecrire.
Yep. Git head. Build before i tested and rebuild again just to be sure.
from ecrire.
That seems to confirm there is different behavior under X11 and Wayland. Or there are other changes in EFL if your using git there as well. 1.21.1 is supposed to come out this week. It will be interesting to see what that brings. 1.21 broke entrance and had some new issues effecting ecrire. Still haven't fixed Entrance yet, really odd issue there.
I will see if I can setup a Wayland test env. One major thing keeping me off Wayland is support for Synergy or equivalent. Not sure Barrier works yet on Wayland. I have multiple machines, min desktop and latop, but at times multiple laptops. Synergy makes it feasible with 1 mouse and keyboard for all. I am able to finally run Wayland with a patch for elogind and modified pam env for startup.
Thanks for testing and confirming! Sorry the changes did not work out in Wayland. They did fix the issues in X11. Least ones I could reproduce, like the scaling up/down with window size.
from ecrire.
Just checked under Wayland, and seems a signal was not being fired. Which was used to initiate the resize of the inner dialogs/inwin. The last commits referenced should resolve the issue.
from ecrire.
That showed another problem. Ecrire under Wayland never saved its geometry, if you resized the window. Commit 16776e1 fixed that. That also relied on the "moved" signal. Which for what ever reason is not fired under Wayland. That is why settings was centered but file dialog was not. File dialog used the geometry from config file, which was never saved under Wayland.
I need to recode some of that to shared code vs duplicated for the dialogs. Either way shows that things are not the same under X11 and Wayland. Wayland has issues not present under X11. Pretty sure those signals should be called. Though seems it was "moved" not "move", but "move" works under X11. Go figure...
Either way should be good now. Resolved
- dialog centering
- resize dialogs with window
- save window size under Wayland
Resolve this issue, and others discovered as part of this issue. Thanks!
from ecrire.
Behaves better now. The graphical glitches seem to be enlightenment related and i'll discuss them in the afternoon with the devs.
from ecrire.
Wayland seems to have more than X. I know when I resize a window with a file dialog. The icons seem to dance a bit. Either way sounds like we can close this issue now. Unless you are still experiencing off center dialogs and/or dialogs not resizing.
from ecrire.
Closing.
from ecrire.
Cool thanks! I tend to prefer the reporter close any issue as confirmation it is resolved for them. To easy to mark something as resolved for me that is not for another. Thanks!
from ecrire.
Related Issues (20)
- Save and Save As don't stay highlighted after a second change HOT 1
- Saving after hiting the X to close on the top bar doesn't make Ecrire close HOT 3
- Segmentation fault and crash on save as HOT 5
- Save and Save as don't highlight after paste on new doc. HOT 4
- Ecrire fails with latest git HOT 16
- [efl + meson < 0.52.0] /usr/lib/libefreet_mime.so.1: error adding symbols: DSO missing from command line HOT 31
- Build issue on efl 1.23.0 HOT 3
- settings dialog segfault ecrire HOT 21
- Problem of transition effect on file open HOT 4
- No focus on startup HOT 2
- Some commands are disabled HOT 4
- Copy/Paste key bindings HOT 4
- Unblink cursor HOT 1
- Cannot build on Mac OS X HOT 10
- Search area bugs HOT 1
- Add some key bindings
- Another problem with open animation HOT 7
- Crash on second 'Open' HOT 1
- Crash with selected text 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 ecrire.