This forum has been archived. All content is frozen. Please use KDE Discuss instead.
The Discussions and Opinions forum is a place for open discussion regarding everything related to KDE, within the boundaries of KDE Code of Conduct. If you have a question or need a solution for a KDE problem, please post in the apppropriate forum instead.

[opensuse 12.2 -- kde 4.8.5] konsole fullscreen trigger

Tags: None
(comma "," separated)
hurukan
Registered Member
Posts
1
Karma
0
Greetings !!

I'm trying to launch a konsole in full screen mode and once done I'm trying to write some boxes all around the corners of this new "fullscreened" window.

This is the source code I used:

Code: Select all
#ifdef _DBUS_ON
  DBusError DBUSerreur;
  dbus_error_init(&DBUSerreur);
  DBusConnection *ConnexionAuBureau=dbus_bus_get(DBUS_BUS_SESSION,&DBUSerreur);
   if(ConnexionAuBureau!=NULL)
   {
      DBusMessage *message;
      dbus_error_free(&DBUSerreur);
      message=dbus_message_new_method_call("org.kde.konsole","/konsole/MainWindow_1/actions/fullscreen","com.trolltech.Qt.QAction","trigger");
      if(message!=NULL)
      {
         //wprintf(L"[DBUS] envoi du message");
         //sleep(1);
         dbus_connection_send(ConnexionAuBureau,message,NULL);
         dbus_message_unref(message);
      }
   }
#endif
   
   // Création de l'UI
   
   GetConsoleDimensions(&uiWidth,&uiHeight);

It works but unfortunately when I ask the terminal to reveal the values in width and height in characters, the values are the ones before the trigger !
Image
How could I do to manage the "refresh" of the terminal values in order to get the correct values ?
I can't switch now to SDL because this is a simulation and it has to work before porting the whole stuff in SDL.

Thanx for any help ^^


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell