Comments (4)
I installed Thonny now and could reproduce it. So it's not specific to Raspberry Pi.
EDIT:
The cause is that Thonny first creates a window with width & height of 1, maximizes it, then map it.
When it maximizes, width & height of view->natural_geometry
are set to 1. Then when the user unmaximizes it, labwc tries to restore the view->natural_geometry
, but it fails as its width & height are smaller than LAB_MIN_VIEW_*
.
Here's the simplest repro:
import tkinter as tk
root = tk.Tk()
root.geometry(root.wm_geometry()) # wm_geometry() returns "1x1"
root.attributes("-zoomed", True)
root.mainloop()
from labwc.
I've just filed #1922 which is probably not the same as this but might be related. Could you run labwc with the -d
flag and capture stdout/stderr and see if there are any complaints about client (%s) did not respond to configure request
or window geometry for client (%s) appears to be incorrect - ignoring
(or anything else relevant)?
from labwc.
I can confirm that if I run the tkinter code provided by @tokyo4j and then "unmaximise" the window, that exhibits the same problematic behaviour that I'm seeing with Thonny. So pinging @aivarannamaa in case this needs fixes from the Thonny-side in addition to the labwc-side.
from labwc.
Should be fixed on latest master, labwc now prevents storing a geometry smaller than what is required to render minimal server decorations (104 x 60). If the application provided value is smaller, labwc will use a fallback size of 640x480 instead.
Thanks @tokyo4j for investigating and fixing!
from labwc.
Related Issues (20)
- firefox --kiosk: starts but does not show a window at all HOT 10
- Conditional actions example HOT 1
- Flickering with magnifier and gammastep HOT 12
- Plan for release `0.7.3`
- Dual graphic card HOT 2
- gamma control of output 43 failed when launching wlsunset HOT 2
- DnD between wayland and xwayland not working HOT 4
- [Question] max_render_time adjustment setting? HOT 6
- Labwc allegedly slow to send fractional scale to applications HOT 4
- Assertion failed at `wlr_libinput_get_device_handle()` in nested session HOT 2
- XDG configure state gets out of sync when clients timeout HOT 5
- Modal dialogs appear behind toplevel window if set by layer-shell-qt HOT 19
- Theme title bars not having all the Openbox features HOT 2
- Tabbed Windows HOT 4
- Dnd icon is rendered below layer-shell surface HOT 3
- Infinite keystroke reptition makes whole UI unusable HOT 11
- FollowMouse and swaylock: wrong window active HOT 3
- Zenity popup warning HOT 9
- Labwc misplaces titlebar on small window HOT 8
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 labwc.