PositionOfXButtonFixOnKde.diff
GtkCreate.cpp (kopia robocza) | ||
---|---|---|
6 | 6 |
|
7 | 7 |
#define LLOG(x) // DLOG(x) |
8 | 8 |
|
9 |
void Ctrl::SyncInitialSizeHints(TopWindow* topWindow) |
|
10 |
{ |
|
11 |
GdkWindowTypeHint hint = gtk_window_get_type_hint(gtk()); |
|
12 |
if (hint == GDK_WINDOW_TYPE_HINT_NORMAL || |
|
13 |
hint == GDK_WINDOW_TYPE_HINT_DIALOG) |
|
14 |
topWindow->SyncSizeHints(); |
|
15 |
} |
|
16 |
|
|
9 | 17 |
void Ctrl::Create(Ctrl *owner, bool popup) |
10 | 18 |
{ |
11 | 19 |
MemoryIgnoreLeaksBlock ___; |
... | ... | |
45 | 53 |
gtk_widget_set_events(top->window, 0xffffffff); |
46 | 54 |
g_signal_connect(top->window, "event", G_CALLBACK(GtkEvent), (gpointer)(uintptr_t)top->id); |
47 | 55 |
|
48 |
gtk_widget_realize(top->window);
|
|
49 |
|
|
56 |
SyncInitialSizeHints(tw);
|
|
57 |
|
|
50 | 58 |
Rect r = GetRect(); |
51 | 59 |
gtk_window_move(gtk(), r.left, r.top); |
52 | 60 |
gtk_window_resize(gtk(), r.GetWidth(), r.GetHeight()); |
53 |
|
|
61 |
|
|
62 |
gtk_widget_realize(top->window); |
|
63 |
|
|
54 | 64 |
if(owner && owner->top) |
55 | 65 |
gtk_window_set_transient_for(gtk(), owner->gtk()); |
56 | 66 |
gtk_widget_set_app_paintable(top->window, TRUE); |
GtkCtrl.h (kopia robocza) | ||
---|---|---|
183 | 183 |
|
184 | 184 |
static GdkFilterReturn RootKeyFilter(GdkXEvent *xevent, GdkEvent *event, gpointer data); |
185 | 185 |
|
186 |
public: |
|
187 |
void SyncInitialSizeHints(TopWindow* topWindow); |
|
188 |
|
|
186 | 189 |
//$ }}; |