Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Widgetset
»
GTK
»
[Solved] GetWindowManager value is wrong
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Lazarus Bugfix Release 4....
by
Bart
[
Today
at 02:15:36 pm]
Interesting video
by
440bx
[
Today
at 10:54:16 am]
If FileExists(
by
lgrfbs
[
Today
at 10:45:03 am]
IndySecOpenSSL is now ava...
by
LeP
[
Today
at 10:22:50 am]
TDWEdit
by
Ed78z
[
Today
at 10:20:58 am]
Strange Behaviour at Runt...
by
andrew Bubble
[
Today
at 09:54:40 am]
FPC Debug mode releases [...
by
Martin_fr
[
Today
at 09:22:25 am]
Implementing an Elo ratin...
by
paule32
[
Today
at 08:43:20 am]
Death of the Power User
by
wp
[
Today
at 01:29:18 am]
how to add a ForEach call...
by
mas steindorff
[June 11, 2026, 11:42:24 pm]
How to define a type of ...
by
PascalDragon
[June 11, 2026, 09:24:45 pm]
Gitlab site history date.
by
Martin_fr
[June 11, 2026, 08:46:17 pm]
Arkanoid
by
lazarusprogrammer
[June 11, 2026, 08:14:21 pm]
[New Component] ExtTabCtr...
by
d7_2_laz
[June 11, 2026, 05:01:49 pm]
Conscious Artificial Inte...
by
schuler
[June 11, 2026, 04:39:11 pm]
Pdf Viewer in Pascal
by
Tomxe
[June 11, 2026, 03:52:37 pm]
Eye Candy TESCheme
by
Dzandaa
[June 11, 2026, 11:51:52 am]
P.I.S.S. a PlugIn-framewo...
by
cdbc
[June 11, 2026, 11:35:42 am]
I found an actual use for...
by
marcov
[June 11, 2026, 11:35:23 am]
Who can explain this ?
by
J-G
[June 11, 2026, 11:30:42 am]
XLibre, finally and fortu...
by
Fred vS
[June 11, 2026, 06:20:26 am]
WEBP, no DLLs
by
Tomxe
[June 11, 2026, 04:04:37 am]
Discipline your AI coding...
by
440bx
[June 11, 2026, 02:44:06 am]
Version 4.8 was recently ...
by
Ten_Mile_Hike
[June 11, 2026, 01:43:17 am]
FPC Unleashed (inline var...
by
Fibonacci
[June 11, 2026, 12:03:13 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] GetWindowManager value is wrong (Read 3113 times)
AlexTP
Hero Member
Posts: 2713
[Solved] GetWindowManager value is wrong
«
on:
August 23, 2023, 11:36:25 am »
I made small demo to see GetWindowManager result string. It gives string of 6-7 Chinese symbols here in the demo! Why? I use latin Ubuntu 20.04 x64 with Gnome.
Code: Pascal
[Select]
[+]
[-]
implementation
uses
gtk2int
;
{$R *.lfm}
{ TForm1 }
procedure
TForm1
.
FormCreate
(
Sender
:
TObject
)
;
begin
caption
:
=
'wm: '
+
GTK2WidgetSet
.
GetWindowManager
;
end
;
Lazarus 3.99 (rev main_3_99-33-gcb65d62758) FPC 3.2.3 x86_64-linux-gtk2
«
Last Edit: August 24, 2023, 09:32:10 am by AlexTP
»
Logged
CudaText editor
-
ATSynEdit
-
More from me
zeljko
Hero Member
Posts: 1952
Re: GTK2WidgetSet.GetWindowManager value is wrong
«
Reply #1 on:
August 23, 2023, 03:03:11 pm »
I've maded change of wm name yesterday in trunk, changed PWideChar to PChar ... can you check inside GetWindowManager if PWideChar need to be returned back ?
Logged
zeljko
Hero Member
Posts: 1952
Re: GTK2WidgetSet.GetWindowManager value is wrong
«
Reply #2 on:
August 23, 2023, 03:10:21 pm »
Juha created bug with
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/db2bca39494aed99664abf76990a26a635e8beb4
, 3 months ago, I've fixed it yesterday, also added to merge list for 3.0RC2.
Logged
AlexTP
Hero Member
Posts: 2713
Re: GTK2WidgetSet.GetWindowManager value is wrong
«
Reply #3 on:
August 23, 2023, 04:14:53 pm »
I used not last Lazarus! If I change PWideChar() to PChar(), then I get OK name 'gnome shell'.
Must be in .GetWindowManager:
Code:
[Select]
if (typeReturned = WMAtom) and (formatReturned = 8) then
Result := LowerCase(StrPas(PChar(Data)));
Logged
CudaText editor
-
ATSynEdit
-
More from me
zeljko
Hero Member
Posts: 1952
Re: GTK2WidgetSet.GetWindowManager value is wrong
«
Reply #4 on:
August 23, 2023, 06:17:22 pm »
As I sad it's fixed yesterday and merged to fixes_3_0
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Widgetset
»
GTK
»
[Solved] GetWindowManager value is wrong
TinyPortal
© 2005-2018